Hello,
I am trying to call c++ function SendCANMessage from .lib file into my CVI project by following steps from this link:
Link (Part: 2nd way to use a DLL).
I have included 2 .h and 2 .c++ files into DLL project in Visual Studio, added __declspec(dllexport) in front of functions that I want to use in CVI
and built project successfully. Then I have added .lib and .dll files that I got from this build into my CVI project. and tried to call one of functions from .c file (from CVI). When i build project, it says:
Function declaration in .h file is: CAN_ERROR SendCANMessage(CAN_msg *pMsg, DWORD dwTimeout); and I have
defined CAN_ERROR, CAN_msg and DWORD earlier in my .c file.
I found that -10 means this: "Identifier not defined globally in the module.", but i don't know what to do about it.
I think that CVI don't see any of functions in .lib and .dll files and i need help how to include it properly, because I just added
these files by Edit->Add Files To Project and added files. I provided archive with all files that are included in CVI project.
Best regards,
Igor