Search results for query: *

  1. C

    c++ DLL call - bad parameter?

    ==>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...
  2. C

    c++ DLL call - bad parameter?

    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...
  3. C

    c++ DLL call - bad parameter?

    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...
  4. C

    Question C++ declaration translation help

    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...
  5. C

    c++ DLL call - bad parameter?

    Solved it! I had accidently called the DLL function in the second example using the function name from the first example. Works now. Charlie
  6. C

    c++ DLL call - bad parameter?

    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...
Back
Top