LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Import Library Error two functions with same name on different namespaces

Im trying impor a library developed by me. In this library have two functions ShowMenu. First function be inside into a class and its declared as
void __fastcall TTrayicon::ShowMenu(). The second function has declared as extern "C" __declspec(dllexport) ShowMenu(int x, int y).
When i use de assistant to import this library i select the library and its header file. But in the next step the assistant show to me the first function.
 
Anyone explain what's happen?
0 Kudos
Message 1 of 4
(2,591 Views)
LabVIEW doesn't do C++ DLLs, so it doesn't distinguish based on classes. That's why you have to use the extern modifier.
0 Kudos
Message 2 of 4
(2,578 Views)
I understand wich LabVIEW doesn't do C++ DLL. But only the second function have an extern modifier
0 Kudos
Message 3 of 4
(2,560 Views)
I'm not sure what kind of answer you're looking for. LabVIEW's Import Library wizard does not always properly handle accessing functions in standard C++ DLLs. See this for more info.
Message 4 of 4
(2,548 Views)