Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Compiler VC++ windows application forms with NIDAQmx program

Hi at all,
 
The aim of the program is to control three step motors with a PCI6221 and a NIDAQmx software and an application software from VC++. Also it is would to include dialog controls as VC++ have.
I made a code in c++ source. It runs very well on a VC++ platform as a console application but there are some compiler errors when it runs in a VC++ platform as a windows application form.
The errors said that there is a functions out of phase due to the calling procedure _clrcall. The specific function is registerdoneevent (C function) when it is called another function. For more details i include the error file of VC++ (BuildLog.htm). Also I include the program in c++.
 
Someone can help me?
 
Thank you,
 
Novice22
 
Download All
0 Kudos
Message 1 of 2
(2,745 Views)

To solve this problem you have to reconfigure the VC project properties following these instructions:


  1. Specify COMMON LANGUAGE RUNTIME SUPPORT as COMMON LANGUAGE RUNTIME SUPPORT(/CLR) in the Project properties. You can find this option in Configuration Properties >> General.
  2. Once you have changed the runtime support, you have to be sure that all libraries are properly linked to the project (any driver you have) in CONFIGURATION PROPERTIES>>LINKER>> INPUT (for example, ADDITIONAL DEPENDENCIES = nidaqmx.lib if you are using daqmx).

0 Kudos
Message 2 of 2
(2,705 Views)