LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i use c++』s dll or VC++』s dll in LabWindows/CVI

Because of my motion card is not belong to NI, the company of motion card provide three files to me (.dll .h .lib), I tried add these three files to project and run it, but occur a errorthe pascal calling convention is not supported in the WIN32 version of CVI, can anyone tell me how to solve this problem

0 Kudos
Message 1 of 3
(3,409 Views)
The PASCAL calling convention was a 16-bit Windows concept that is still included in VC++ for compatibility purposes, but is in fact equivalent to __stdcall.
 
So if you define PASCAL thus:
 
#define PASCAL __stdcall
#include "Mdsp.h"
 
and delete the one __declspec(dllexport) instance in Mdsp.h, then it should all work.
 
--
Martin
Certified CVI Developer
0 Kudos
Message 2 of 3
(3,392 Views)
thank you very muchSmiley Very Happy, your reply saved me.
0 Kudos
Message 3 of 3
(3,380 Views)