Problem sharing: ActiveX component can ' t create object: ' Mscomdlg.commondialog '

Source: Internet
Author: User

Problem Description: Modify a predecessor's code, in my own computer run very well, but put to the user computer (Win7 x64) on the above but can not run, reported a title error.

Check the following is the problem of Comdlg32.ocx, the place to use the control is:

Dim Odialogf_file_commondialog=FalseSet odialog = CreateObject ("Mscomdlg.commondialog")

Workaround:

1. Register the control: Find this control comdlg32.ocx, the user computer above does not (here can be: link), put to. Windows\System32 and then register with CMD:

regsvr32 comdlg32.ocx

You may not be able to register, please select Administrator permissions to run. Try to run again, if you're like me, it's still an error "the control could not being created because it's not properly licensed", you're going to modify the registry.

2. Modify the Registration form:

Open registry: Found:HKLM\Software\CLASSES\Licenses\4D553650-6ABE-11cf-8ADB-00AA00C00905, 设置默认值(Default)gfjmrfkfifkmkfffrlmmgmhmnlulkmfmqkqj

(This is the result of Google, more direct, you can also try to re-install a VB, and then removed, the installation process will be registered to this control) (http://stackoverflow.com/questions/4386124/ How-can-i-use-the-common-save-as-dialog-from-vbscript)

My problem is solved here.

Recently feel the heart tired, hurriedly let me go home the New Year ...

Problem sharing: ActiveX component can ' t create object: ' Mscomdlg.commondialog '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.