Exactly I've got a labview source code. Here are the prototypes of the dll's functions: (That's how labview shows):
long DevNew(Cstr arg1, CStr arg2, unsigned short int arg3);
long DevWrite(unsigned char arg1, CStr arg2, long arg3);
long DevRead(unsigned char arg1, CStr arg2, long arg3);
long DevDel(unsigned char arg1);
And here is how I try to use them in Visual C:
typedef signed __int32 (*DevNewptr)(char* ipaddress, char* devicename, unsigned __int16 buffersize);
typedef signed __int32 (*DevWriteptr)(unsigned __int8 DevIdxOut, char* Data, signed __int32 Size);
typedef signed __int32 (*DevReadptr)(unsigned __int8 DevIdxOut, char* ReadBuffer, signed __int32 pm);
typedef signed __int32 (*DevDelptr)(unsigned __int8 DevIdxOut);
I suppose there most be something wrong with the char* 'cause the other paramaters were mentioned as shown, only the CStr types mean string what I translated into char*...