FYRe Posted August 12, 2005 Posted August 12, 2005 Dynamic Link Label (DLL) =================== :confused: Does anyone knows how to convert the following VB 6.0 code to VB .NET ? ( refer to attached pic to view & attached file to view program )vbTestPics.zip Quote sOMEONE'S gONNA dO iT, wHY nOT yOU ?
Administrators PlausiblyDamp Posted August 12, 2005 Administrators Posted August 12, 2005 For the declare statements simply replace the longs with integers i.e. Public Declare Function PicCountCard Lib "Pics.dll" () As Integer Public Declare Sub PicOpenCard Lib "Pics.dll" (ByVal cardNbr As Integer) Public Declare Sub PicCardIsOpened Lib "Pics.dll" (ByVal cardNbr As Integer) Public Declare Sub PicCloseCard Lib "Pics.dll" (ByVal cardNbr As Integer) Public Declare Sub PicResetCard Lib "Pics.dll" (ByVal cardNbr As Integer) Public Declare Sub PicQueryCard Lib "Pics.dll" (ByVal cardNbr As Integer, ByRef nbrOfChannel As Byte, ByRef nbrOfStrobe As Byte, ByRef serialNumber As Integer) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
FYRe Posted August 12, 2005 Author Posted August 12, 2005 Do I have to put the codes u have written in a ' Class' : --------------------------------------------------------------------------------- Public Class Win32 .. ... ' your codes here .... End Class --------------------------------------------------------------------------------- Quote sOMEONE'S gONNA dO iT, wHY nOT yOU ?
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.