Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

sOMEONE'S gONNA dO iT, wHY nOT yOU ?
  • Administrators
Posted

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)

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

Do I have to put the codes u have written in a ' Class' :

 

---------------------------------------------------------------------------------

Public Class Win32

..

... ' your codes here

....

End Class

---------------------------------------------------------------------------------

sOMEONE'S gONNA dO iT, wHY nOT yOU ?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...