Accessint C struct in VB?
Posted on 2001-08-07
I have a VB compiled app, that uses a DLL written in C. The VB app calls a function in the DLL to register a callback function in the VB app. The DLL then calls the VB Callback function periodically with a pointer to a data structure. Everything works fine with the initial register call and the periodic callback works fine also... I am getting the correct address as the only parametyer of the callback function...
I just need some help with the last step... how can I access the members of this structure in VB now that I have th address in VB? Is there a VB equivalent of the C structure that I can cast to this address and then access the structure members?