LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Call Library Function. Want to pass a string and return a string, but my compiler does not recognize "CStr" and Labview does not recognize my "char *function()" callout

Hi, I'm trying to use a .DLL I wrote in Visual C++ .NET. The Call Library Function generates a function prototype of "CStr Parser(CStr arg_raw)"
but my compiler won't accept this. So I change it to how C normally deals with strings "char *Parser(char *arg_raw). Now the Call Librafy Function does not find "Parser" in my .DLL though it is definitely there!

Help!

-Fong
0 Kudos
Message 1 of 4
(2,853 Views)
Hello

You will need to include extcode.h in your C file. You can find this under ..\LabVIEW\cintools folder.
The include has all the defines you will need.

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 4
(2,853 Views)
Hm, I don't have this folder in my directory. I'm running Labview 6.1, base dev. Do I need full dev for this?

-Fong
0 Kudos
Message 3 of 4
(2,853 Views)
Looks like you would need the full dev for these headers and lib's. Would explain why you dont have the cintools folder.

Bilal
Bilal Durrani
NI
0 Kudos
Message 4 of 4
(2,853 Views)