Re: Calling C++ DLL function in labview

2004-05-06 Thread Joe Guo
Rolf, I have hard time to find the LabVIEW library. What's the exact name? Thanks. -Joe

Re: Calling C++ DLL function in labview

2004-05-06 Thread Joe Guo
I found it. It's in Labview.exe . Thanks, Rolf. -Joe

Re: Calling C++ DLL function in labview

2004-05-05 Thread Evan
I wanted to post a real quick note to get knowledge of the example out. There is a great example Call DLL.vi that shows how to call DLLs with a tom of different data types. It has example C code and the LabVIEW code calling it. You can find it in the examples folder under dll/data

Re: Calling C++ DLL function in labview

2004-05-05 Thread Joe Guo
Thanks for the info, Evan. -Joe

Re: Calling C++ DLL function in labview

2004-05-05 Thread Joe Guo
Thanks for everyone's help. Here is another question. The functions in the DLL returns a pointer to an error type-def. However, labview has only limited options for the return value. Is it possible to de-reference the pointer? or is it too late once the call library function finishes? Thanks,

Re: Calling C++ DLL function in labview

2004-05-05 Thread Joe Guo
Rolf, the error type def is a record/cluster, consists of an integer and a fix length char array. -Joe

Re: Calling C++ DLL function in labview

2004-05-04 Thread Enrique
Hi Joe; You need to use the declaration bextern C/b to prevent C++ name decorations. For example: extern C { _declspec(dllexport) long Function_1(int var1); } // Then, do whatever in your function... _declspec(dllexport) long Function_1(int var1) { // Whatever... } etc. The manual a