Hello
You can also link directly against the CVI libraries. CVI provides MSVC and Borland libraries that you can use in your project. I have attached a sample MFC dialog app that shows how to use the inp and outp functions in an MFC project. Basically I disabled precompiled headers, added paths to where the CVI headers and libs are and then added the required libraries. You can view the project settings to see this.
One thing though is when using these functions, you will need to have the CVI low level drivers installed on the system, since these functions are more powerful than the ones shipped in VC. The equivalent functions in VC only work on Win9X platforms. These functions use the low level driver to work on NT based systems as well. You will need to keep this mind if distributing the MFC app that uses these functions.
Hope this helps
Bilal Durrani
NI