|
-
November 27th, 2008, 09:48 PM
#3
Re: Need help, handling C++ dll in vb.net
Hi HairyMonkeyMay,
Thanks for the quick response.
Currently this is how i declare the method
Code:
Private Declare Function BioDRV_Enroll Lib "FvidDrv.dll" (ByVal HWND As Long, ByVal LPVOID As IntPtr) As Short
and i have a method that uses the function that looks like this
Code:
Private Function Enroll() As Boolean
Dim s As Long = BioDRV_Enroll(Me.Handle.ToInt32, Nothing)
If s <> 0
Return False
End If
Return True
End Function
It properly returns the correct value...as for this function a zero which signifies a normal exit...
however this is an asynchronous-type function and its completion is judged by the completion message called BIODRV_COMPLET_ENROLL.
The message reports the completion of the function above and it also has a WPARAM and LPARAM that accompanies the message...
my problem is on how to manipulate this WPARAM and LPARAM as i need to control them to get the returned handle to proceed with other processes.
Thanks in advance for your help...and i certainly thank you for the code snippet you gave, looks like that's how a true .net declaration is done.
Thanks and Regards,
ByVal
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|