Think of something that you wish Authorware could do but it doesn't?  Let the our good friends at Macromedia know via the wishlist.

Please let us know if you find any of the materials on this site inappropriate or offensive. Please include the url and why the material should be reviewed.

Comments and questions about the site are also welcome. Please no Authorware questions, use the AWARE list.


11019 - Registering ActiveX Controls

by - Apurva Lawale

Sometimes when you want to register ActiveX controls (files with *.ocx), it becomes a real pain. You might either go to the DOS prompt and use regsvr32.exe or you might attempt ActiveXControlRegister("FILENAME") system function from Authorware.

You might be making your own ActiveX control and might want to check or reinforce that it is properly registered with the system. You might be tempted to use regsvr32.exe from the DOS prompt.

Well, this example might ease up all the above stuff for you.

Is this Magic or what ?

What is so different in the image on the left ? Maybe you should right click on an any file in your computer and see the options that it gives you.

Well, here you will see that I have two new options Register and UnRegister. They only appear in the menu when I right click an Activex Control.

Now as you can see, wouldn't it be cool if it were as easy as this to register any ActiveX control in your system with a click and to unregister it with a click.

Well, below we will see how to get these options on your menus.

Steps to get "Register" and "UnRegister" to appear on your menus. I will be showing you how to do it for Windows 2000 but it should be similar for other OSes too.

1. Start Windows Explorer.


Go to Tools -> Folder Options ...


Select the File Types tab.

Click on the New button. When you click the new button you will get a Create New Extension dialog box.

Type OCX in the File Extensions Field. Click on the Advanced button and you will see the field labeled Associated File Type.

Click the OK button to close the Create New Extension dialog box.


After you have closed the Create New Extension dialog box. You have to go to the area where it is written Details for 'OCX' Extension. Click on the Advanced button and you will see a new dialog box appear known as the Edit File Type dialog box.

Click on the New button in the Edit File Type dialog box.


When you click the New button you get a dialog box called New Action. Type in exactly the way you see in the picture on your left and the click the OK button to close the New Action dialog box.

When you click the OK button you will be returned to the Edit File Type dialog box . Highlight the Register action and click the Set Default button.


Do the same for UnRegister action as you have done for the Register action.

Type in exactly as you see in the picture on the left for UnRegister.

Click OK when you are done typing exactly as shown. Close the Folder Options dialog box. Find an ocx file in your system and right click on it to register it or unregister it.

Email :

Copyright © 2002 Apurva Lawale. All Rights Reserved.

There are 0 reviews
Add your review