Discussion:
Import Library Error two functions with same name on different namespaces
(too old to reply)
bruno costa
2008-08-01 16:10:06 UTC
Permalink
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?
smercurio_fc
2008-08-01 21:10:06 UTC
Permalink
LabVIEW doesn't do C++ DLLs, so it doesn't distinguish based on classes. That's why you have to use the extern modifier.
bruno costa
2008-08-06 02:40:06 UTC
Permalink
I understand wich LabVIEW doesn't do C++ DLL. But only the second function have an extern modifier
smercurio_fc
2008-08-06 14:40:07 UTC
Permalink
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 <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;view=by_date_ascending&amp;message.id=320862#M320862" target="_blank">this</a> for more info.
Loading...