Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automation error

Status
Not open for further replies.

sunshine9

Programmer
Aug 1, 2002
21
US
Hi,

i'm trying to implement the following code:

var objColorDialog;
objColorDialog = new ActiveXObject("MSComDlg.CommonDialog");

// Show it to user
objColorDialog.ShowColor();

// Retrieve color
var selColor;
selColor = objColorDialog.Color;

ok, this throws the following error on my machine:
Automation server can't create object.

The same code works on a different machine. what is going on here?? Please help!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top