LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a DLL in labview that interacts with a DLL in C++

I’m creating a DLL in LabView that will interact with a DLL created in C++. I don’t have control in the C++ DLL.

 

Both DLLs would pass a big amount of data as strings between them, for that it is necessary to allocate memory to store information in one dll and read it in the other and viceversa. The first time I will call the other DLL,  with this function :

 

long in texts ( unsigned char *name, void *id)

I would pass them a pointer pointer to an ASCII string  (name) and a pointer to an unspecific data structure (id). The id would then be passed to me by his DLL whenever they use one of the functions implemented on my dll.

 

What I don’t know is what to pass as a void*id? What are they expecting? A number? A cluster?

 

The other thing I don’t know is how to allocate memory in labview and write there information, such as a string, and then tell the other DLL to look for the information at that DLL, and viceversa. I hope I made my self clear, hope somebody can help me, and please indicate me if you need more information

0 Kudos
Message 1 of 1
(2,124 Views)