LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to get a Cluster of Sringarray from VC++ without extcode.h?

Hello!

Is it possible to get a Cluster of Sringarray from VC++ without extcode.h? I have LabVIEW 6i BASE. This version hasn't cintools so it's not possible to cast or declare structures in the rihgt way.

Thanks for help

Jens
0 Kudos
Message 1 of 5
(2,876 Views)
Actually, even if you had the CINTOOLS this would be a little tricky. I'm assuming that you are calling a VC++ DLL that passes the cluster as an argument. When you say "stringarray" do you mean a normal character array or did you mean an array of strings? Either way, the generic answer is to create a wrapper function for calling the DLL function; or if the DLL is your own, simplify the argument data types. Not that it is necessarily impossible to call the DLL function directly from LabVIEW the way it is, but by the time you figure it out, you could have just written the wrapper. If you are really intent on calling it from LabVIEW directly then you have to know exactly how the data is packed and passed. Does the structure hold the entire string or just a p
ointer to the string? Is the structure itself being passed by pointer? You can then figure out how the data needs to be passed from LabVIEW.
0 Kudos
Message 2 of 5
(2,876 Views)
Hi Aaron!

The Problems is I have an own VC++ DLL which has just a poniter to a array of Cstring. Now I try to transfer data from Cstring to LabVIEW 6i. I took an array and put a string element in it. After this I put it in a cluster and conncet it with shared library funktion. The datatransfer chrash and I don't know why? LabVIEW doesn't allow me to debug? Could you help me?

Thanks Jens
0 Kudos
Message 3 of 5
(2,876 Views)
Hi Aaron!

The Problems is I have an own VC++ DLL which has just a poniter to a array of Cstring. Now I try to transfer data from Cstring to LabVIEW 6i. I took an array and put a string element in it. After this I put it in a cluster and conncet it with shared library funktion. The datatransfer chrash and I don't know why? LabVIEW doesn't allow me to debug? Could you help me?

Thanks Jens
0 Kudos
Message 4 of 5
(2,875 Views)
Hi Aaron!

The Problems is I have an own VC++ DLL which has just a poniter to a array of Cstring. Now I try to transfer data from Cstring to LabVIEW 6i. I took an array and put a string element in it. After this I put it in a cluster and conncet it with shared library funktion. The datatransfer chrash and I don't know why? LabVIEW doesn't allow me to debug? Could you help me?

Thanks Jens
0 Kudos
Message 5 of 5
(2,875 Views)