NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

char data types in teststand c++ dlls

Hi there.

Apologies if you have already answered a question similar to this, but I couldn't find one that was quite the same.

In my DLL, I want to pass in a string variable, and pass out another string. The actual data transfer is ok, but only after I have manually edited the prototypes, as in the "Specify Module" dialog for a C++ call it always seems to default to "Signed 8-bit Integer" from the "Numeric" category in the parameter details box for a "const char*" (where in fact I want "C String (const)" from the String category). For the output string I want "C String Buffer" from the "String" category but always seem to get "Signed 8-bit Integer" from the "Array of Numbers" category.

Can you tell me what I need to put i
n my IDL file to make it so that I don't have to manually change the prototype?

Thanks

Peter Dawe
EADS Astrium.
0 Kudos
Message 1 of 2
(3,095 Views)
You need to add some custom attributes to your parameters in the IDL. This KnowledgeBase article should answer all your questions:

Title: How Do I Create a Type Library Using Visual C++?
KnowledgeBase ID: 1P68ATSR
0 Kudos
Message 2 of 2
(3,095 Views)