LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use outp() function of utility.h in MFC based Visual C++ application?

I am trying to access the parallel port through the outp() and inp() functions defined in utility.h but I dont know how to use them in MFC based Visual C++ 6.0 applicaton which I am using....Please narrate the necessary steps required to achieve the desired result.....
0 Kudos
Message 1 of 3
(3,573 Views)
Hi,

The link below talks about "Creating a CVI DLL that Contains a UIR file and Using the DLL in Visual C++"
< http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B4AF4DBECB194ABCE034080020E74861&p_node=DZ52177&p_source=External >


Below are some other links that may be of help to you:

< http://forums.ni.com/ni/board/message?board.id=180&message.id=2119&requireLogin=False >

< http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DDCF56A4E034080020E74861&p_node=DZ52168&p_source=External >

< http://zone.ni.com/devzone/conceptd.nsf/webmain/80acc89c9dd2a46486256ee300675b53?OpenDocument >

< http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E3E756A4E034080020E74861&p_node=DZ52171&p_source=External >

Prashanth V
National Instruments
0 Kudos
Message 2 of 3
(3,566 Views)
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
0 Kudos
Message 3 of 3
(3,548 Views)