Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i use NI CWSlide control in my VC++(MFC) dialog base application

Hi,
i want to use u r CWSlide control in my VC++6.0 (MFC) dialog based aplication.
how can i use that contorl.
please help
 
Thanks
Rahul
0 Kudos
Message 1 of 2
(3,596 Views)

In MS VC++ app, you can use CW controls as like as other 3rd party ActiveX controls. 

Open the design view of the dialog resource in your MFC app project, right-click on the dialog-form to show the popup menu. Then select "Insert ActiveX Control..." menu.  You will see the list screen containg available ActiveX controls (OCX) then select the CWSlide object.

To generate the control's wrapper C++ codes, go for MFC ClassWizard then add the associated member variable (beginning with m_ prefix) of CCWSlide type.  The VC++ IDE automatically generates wrapper C++ codes for the control and adds them into your MFC project.  (The wrapper source codes are generated by reverse-engeering OCX's type library.) To add your event handlers of the control, use ClassWizard as like as other 3rd party controls.

Makoto

このメッセージは 07-10-2006 08:16 PMに Makoto が編集しています。

0 Kudos
Message 2 of 2
(3,593 Views)