From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI產品與技術 討論區

取消
顯示結果 
搜尋替代 
您的意思是: 

Can LabVIEW calls all DLL that generated by VC++?

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.
0 積分
1 條訊息(共 2 條)
4,534 檢視

Hi

可能是 parameter 設定要對

這邊下面有一些連結可以參考.

http://zone.ni.com/reference/en-XX/help/371361B-01/lvexcodeconcepts/using_ext_code_lv/

http://digital.ni.com/public.nsf/websearch/C986BE380663EB578625693C0051B771?OpenDocument

http://zone.ni.com/wv/app/doc/p/id/wv-163

可以先試試看

best regards

Super



由 Support 在 01-10-2008 11:12 AM 上編輯的訊息
0 積分
2 條訊息(共 2 條)
4,517 檢視