×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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

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

(OP)
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

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

(OP)
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*...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources