
Help: DLL Function returns handle
Quote:
>Maybe someone can help me. A DLL function I am calling returns a Handle to
>a complex structure, which will then be used for other calls in the same DLL
>function list. How do I trick VB in letting the Function return a handle
>without giving me a type mismatch at Run-time. In C the fucntions would
>look something like this:
>Handle RfmHandle
>RfmHandle = rfmOpen()
>rfmWrite(RfmHandle,80)
>rfmRead(RfmHandle,80)
>What do I Declare rfmOpen as to return the handle and then how do I use that
>handle for the other two functions when I call them??
>Thanx much if you can help me!!!
declare function rfmOpen lib "your dll" as long
declare sub rfmWrite lib "your dll" (byval RfmHandle as long,byval
variable1 as long)
....
Jacky Kwok