==>Your delegate refers...<==
Yes, after studying that, I realized that it actually calls itself. My comment about calling it directly was meant to indicate that I am not setting/changing the text a)from anyplace else, and b)without going through the callback. However, your comment about the...
Success
Success!
Here's the final code snippets:
Private Declare Function EnableData Lib "Foo.dll" () As Int32
Private Declare Function DisableData Lib "Foo.dll" () As Int32
Private Declare Function AddDataHandle Lib "Foo.dll" (ByVal Handler As MyFunctPtr, ByVal ThisClass As IntPtr) As...
Here is the background behind my original post:
I have an external hardware device that provides data upon a specific hardware event. To get the data into the program, you must register the code function, by name, as a callback from the hardware device. To do this properly requires two...
Hello all,
I need help with a Declaration call in VB.Net (this time I'll try to get the code tags correct!)
This is the definition in C++:
BYTE WINAPI MyFunction(MyPtrType func,LPVOID pParam);
"pParam" is used in the program via the term "This", which I believe means the current thread...
I need to call a legacy DLL.
Here is the definition of one of the functions (abbreviated):
GetNumber(char *sNumber, int *length); <==returns int
I change it to VB.net:
GetNumber Lib "Foo.dll" (ByVal Number As IntPtr, ByRef Length As Int32) As Int32
'(intent is to return data into...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.