LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mangled function name in Call library function node

Solved!
Go to solution

Hello,

 

I am modifying an existing LabView wrapper project, I added one function, and even though I used the same export settings as it is used for all other function, only the new function name appears mangled. 

 

The DLL code:

 

#ifdef OS_WINDOWS
# define EXPORTSPEC extern "C" __declspec ( dllexport )
#else

EXPORTSPEC int S7API lv_Srv_RegEvents(S7Object Server, LVUserEventRef *EventRef, PSrvEvent EventData);

 The Call library dialog:

 

CallLibrary.png

Even if the function itself is empty, LabView still fires the general memory corruption error.

 

Please help.

0 Kudos
Message 1 of 4
(2,818 Views)

Duplicate post

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 4
(2,813 Views)

I notified to moderator to delete one.

0 Kudos
Message 3 of 4
(2,809 Views)
Solution
Accepted by topic author Bublina

Oh me,

 

the S7API definition ment __stdcall 

 

Smiley Frustrated

 

now it works nicely...

0 Kudos
Message 4 of 4
(2,803 Views)