02-24-2006 10:20 AM
03-10-2006 04:21 AM
Yes, it is a safe bet indeed 😉
@Pjama wrote:
I have seen similar posts around here, but nothing specifc enough to my situation.
I need some help creating a LabVIEW DLL to fit a particular prototype (which is being called by another program).
The (required) prototype:
int InitFromVifBom (DWORD nCode, void *p)
DWORD is simply "typedef unsigned long DWORD;"
and void *p is later defined as:
pInit = (INIT_VIFDLL *) p;
where INIT_VIFDLL is a structure defined as:
typedef struct {
HINSTANCE VifBomDLL; // Handle of VifBom.DLL
unsigned char Res[128]; // reserved for future use.
} INIT_VIFDLL;
...OK, if you're still with me, I will describe what I have tried.
I have managed to generate a LV DLL with a prototype:
long __stdcall InitFromVifBom(unsigned long nCode, TD1 *p);
My main question is concerning the pointer 'p'. It is currently a cluster of an I32 value, and an array of 128 chars. (as per the above code).
This is crashing the program which calls my DLL, and I am guessing that it is my fault (this is likely a safe bet.)