Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Step 7: Using the Client Control

Visual Studio .NET 2003

In this step, you will use the client control to invoke the methods.

To use the client control

  1. On the Tools menu, click ActiveX Control Test Container.

    This starts Tstcon32.exe.

  2. Click the New Control button on the toolbar to insert a client controls (CDispCtl).
  3. Right-click the control and click Invoke Method on the shortcut menu.

    The Invoke Method dialog box appears.

  4. Ensure that Method Name is set to Connect and click Invoke.
  5. Right-click the control and click Invoke Method on the shortcut menu.

    The Invoke Method dialog box appears.

  6. Set Method Name to Send.
  7. Change the parameter type on the Send method to VT_BSTR.
  8. Enter any string in the Parameter Value box.
  9. Click the Invoke button.

    The string is displayed in all connected controls.

Back to Step 6 | Back to the Overview

See Also

Attributes Tutorial | ATL Article Overview | ATL Class Overview

Show:
© 2015 Microsoft