‎06-25-2009 01:30 PM - edited ‎06-25-2009 01:31 PM
Hey everybody,
I'm getting some weird garbldygook in my function prototype in the Call Library Function configuration window:
My function is void Norm(...)
Anybody know where these extra symbols are coming from?
Thanks in advance.
‎06-26-2009 04:04 PM
Hi Candice,
If you delete the node, drop a new one, then set it up again, does it have the same problem?
‎06-27-2009
10:41 AM
- last edited on
‎05-31-2026
02:13 PM
by
Content Cleaner
It appears you are dealing with a C++ DLL. LabVIEW does not handle C++ DLL. It can only handle C DLLs, or at the very minimum, you need to adorn each prototype with extern "C". This is discussed in Step 3 of this document: Building a DLL with Visual C++.
‎06-27-2009 08:22 PM
‎06-27-2009
10:49 PM
- last edited on
‎05-31-2026
02:14 PM
by
Content Cleaner
The bottom line is that whatever compiler you are using is adorning the function names. That function is being seen as a C++ function, and LabVIEW cannot call it. You need to look at the documentation for your compiler on how to prevent this. This KB article is old, but it still applies (see section "Function Name is Decorated).
‎07-02-2009 12:00 PM - edited ‎07-02-2009 12:03 PM
I was told that while labview cannot call C++ functions, I can still write in C++ using only C callable functions and Labview can use it. Is this true or false.
btw, the mangling on the prototype "magically" fixed itself, after closing out of labview and restarting 😕
‎07-02-2009 12:19 PM
Candice wrote:I was told that while labview cannot call C++ functions, I can still write in C++ using only C callable functions and Labview can use it. Is this true or false.
As long as the interface that LabVIEW sees is C then yes, that's generally true.
btw, the mangling on the prototype "magically" fixed itself, after closing out of labview and restarting 😕
That's just bizarre.
‎07-02-2009 12:20 PM