Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations pierreick on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Labview <--> Visual C++ 6.0 types?

Status
Not open for further replies.

TarPista

Computer
Aug 24, 2006
2
Hi all!

Where can I find that types in Labview are equvivalent with which type in Visual C++ (6.0)? Exactly I mean these labview types:
long, CStr, unsigned short in, unsigned char

I've tried some kind of variations but I couldn't manage with them..:S
 
Replies continue below

Recommended for you

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*...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor