My platform: WinXP, CVI 6.0, VC++6.0.
I simply add cvisrvr.c,cvisrvr.h to my VC project. But after build it says:
"e:\vcprojects\myproject\cvisrvr.c(2189) : fatal error C1010: unexpected end of file while looking for precompiled header directive"
Then I add "#include "stdafx.h"" to the beginning of cvisrvr.c, but still get error information:
"Compiling...
cvisrvr.c
e:\vcprojects\myproject\cvisrvr.c(1) : fatal error C1853: 'Debug/myProject.pch' is not a precompiled header file created with this compiler
Error executing cl.exe."
When I was using CVI5.0, I added cvisrvr.h, cvisrvr.lib, cvisrvr.dll to my VC project as activex automation server, and it worked fine.
I've studied the sample in C:
\Program Files\National Instruments\MeasurementStudio\CVI\samples\activex\cvi, but still don't know how to use it.
Any help be appreciated!