|
Using PortController with Visual C++Add the PortController object to your project by selecting Project->Add To Project->Components and Controls from the menu bar: ![]() The Components and Controls Gallery dialog box appears. Double click Registered ActiveX Controls and then select PortController Class from the dialog. Click Insert. ![]() When asked if you want to insert the component, click Yes. The Confirm Classes dialog box appears informing you that a wrapper class will be generated so that you can use PortController from your project. Click OK. Now click Close to close the Components and Controls Gallery dialog box. Visual Studio will generate the wrapper class and the PortController icon will appear in the Controls toolbar. Drag the PortController icon onto the dialog. ![]() You may now create a PortController instance in your code by using the Member Variables tab of the ClassWizard: ![]() You may now begin coding with the PortController instance. See the PortController Reference for details on how to use PortControllers properties, methods, and events. |