For what it's worth, I just created a DLL call, passing an Occurrence Refnum, and got the prototype:
long MyOccurrenceFunc(LVRefNum *MyOccurrence);
in other words, a POINTER to the RefNum.
This is in LV 6.1; I know of no errors in this regard about 6.1.
You could typecast the RefNum to an I32 and display it before the call, then in the DLL, spit the refnum back out in an I32 parameter, and compare them in the LV subVI...
You do know, I assume, that you have to close the VI that calls the DLL to unload it before you can use a new one, don't you? Visual C warns you about this, I don't know about Borland. If you leave the VI open, the linker cannot create a new DLL file, bec
ause the existing one is in use.
Sorry I can't help any further...
Thanks for your help, it's much appreciated.Then give me a rating.