Using Command-Line Options to Customize Startup Mode

You can use a variety of command-line arguments to specify the startup mode for the ActiveX Control Test Container.

To provide arguments to the Test Container

1. From the Tools menu in Visual C++, choose Customize.

2. Select the Tools tab.

3. Choose ActiveX Control Test Container.

4. Enter one or more of the following options in the Arguments box.

ActiveX Control Test Container Options

-IAdviseSinkEx+

Support IAdviseSinkEx

-IAdviseSinkEx-

Don’t support IAdviseSinkEx

-C progid   

ProgID of control to initially load

-Ln

No logging

-Lo

Log to output window

-Ld

Log to debugger

-Lf filename

Log to file filename

-IOleInPlaceSiteEx+

Support IOleInPlaceSiteEx

-IOleInPlaceSiteEx-

Don't support IOleInPlaceSiteEx

-IOleInPlaceSiteWindowless+

Support IOleInPlaceSiteWindowless

-IOleInPlaceSiteWindowless-

Don’t support IOleInPlaceSiteWindowless

-OH+

Honor OLEMISC_IGNOREACTIVATEWHENVISIBLE

-OH-

Don’t honor OLEMISC_IGNOREACTIVATEWHENVISIBLE

-OQ+

Use quick activation

-OQ-

Do not use quick activation

-OT+

Use two-pass drawing

-OT-

Do not use two-pass drawing

-OI+

Support inactive controls

-OI-

Do not support inactive controls

-OW+

Allow windowless activation

-OW-

Disallow windowless activation

-SBindHost+

Support SBindHost

-SBindHost-

Don’t support SBindHost

-U+

User mode

-U-

Design mode