I would like to call a third parties provided DLL, which is generated by VC++, by LabVIEW. I used the "call library function node" to call the DLL file, and set all the required variables according to the headed file. I also checked the calling convention. I am sure that all these settings are correct. But when I compiled the program, an error message appeared. "An exception occurred within the external code called by a Call Library Function Node. This might have corrupted LabVIEW's memory. Save any work to a new location and restart LabVIEW. VI... was stopped at call library function node 0xB38 (this number always change) of subVI". May I ask that what is the possible reason for this error?
I also tried to call the DLL by CVI. The corresponding header file was included in the main program (.c). When I compiled the project, many extra .h files are requested to be included, e.g. Afx.h, Afxmt.h, Afxplex_.h..... After including all these header files into the project, I complied the project again. Many errors appeared, e.g. Afx.h MFC required c++ compliatien (use a c++ suffix). Does it means that the third parties provided DLL is not supported by LabVIEW and LabWindows?
Thank you very much.