LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Tranfer a string from CVI dll to Visual C++ exe

I create a CVI 5.5 dll to dialogue with a Visual C++ application. I use the
LPCSTR and BSTR types to return to my application a string from my dll.
In my appli. with the LPCSTR type, I find the right string but it is copied
on a wrong place in the memory and I lost all my data.
I don't know how I have to do to resolve this problem of types compatibility
between dll and application.
0 Kudos
Message 1 of 2
(2,880 Views)
Hello Laurent,
I think we could help you better if you will give us further details regarding your problem. Maybe some small pieces of code to show us your function prototypes and return values. I also do not understand what you mean by "find the right string but it is copied on a wrong place in memory".
Please explain further and I am sure someone here will be able to assist you.

Jeremiah Cox
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,880 Views)