Rolf, I have hard time to find the LabVIEW library. What's the exact
name? Thanks.
-Joe
I found it. It's in Labview.exe .
Thanks, Rolf.
-Joe
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
Thanks for the info, Evan.
-Joe
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,
Rolf,
the error type def is a record/cluster, consists of an integer and a
fix length char array.
-Joe
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