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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSComDlg.CommonDialog Error

Status
Not open for further replies.

babalas

Technical User
Apr 28, 2003
10
CA
I have a script which works fine in Windows 98. It creates an object like this:

Set objDlg = CreateObject("MSComDlg.CommonDialog")

I have a user who is now on an XP machine and I get an error message that reads like this when the script is run.

"class is not licensed for use"

Can anyone tell how to correct this problem? Thanks

babalas
 
The user's new machine (or new OS installation) doesn't have a developer license for the Common Dialog control. Perhaps they once had VB 5/6 installed on the old OS?

It is possible to pass a runtime license to script in IE-based applications (HTMs, HTAs), but I'm unaware of any other way to used a licensed control in script besides installing a developer license on every target machine.

Creating a VB wrapper to a licensed control can be done, but this violates the terms of the developer's license for Micrsoft licensed controls.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top