设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 5964|回复: 2
打印 上一主题 下一主题

[ActiveX] 【技巧】comdlg32.ocx 控件无法注册或插示提示无法创建控件,因为它未经授权

[复制链接]

点击这里给我发消息

跳转到指定楼层
1#
发表于 2016-4-8 09:40:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在一些电脑或新的windows 10系统中无法使用CommonDialog控件,或注册后在窗体中插入控件时,提示无法创建控件,因为它未经授权,可使用以下方法来解决:


一。用管理员注册控件

1、首先确保你的WIN10帐户是管理员权限;

2、下载comdlg32.ocx等控件,网上可搜到(对应你的Win10系统位数);

3、如果是64位把comdlg32.ocx放到c:\Windows\SysWOW64,注:需要管理员权限
   如果是32位把comdlg32.ocx放到c:\Windows\System32,注:需要管理员权限

4、在win10任务栏搜索框输入CMD 然后右键点击以管理员身份运行

5、regsvr32 c:\Windows\SysWOW64\comdlg32.ocx(相应控件名)64位
   regsvr32 c:\Windows\System32\comdlg32.ocx(相应控件名)

提示DllRegisterServer in C:\WINDOWS\SysWOW64\comdlg32.ocx succeeded

即表示控件注册成功。

二。在窗体上插入 COMDLG32.OCX控件无法添加,提示“无法创建控件,因为它未经授权”,解决办法如下


将以下内容COPY到记事本中,另存为Regocx.reg,然后双击注册,然后到你的VBE中再添加那个控件吧!如果还是不行,就从网上下个版本比较新的comdlg32.ocx(我用的是6.1.98.16版的),copy到C:\WINDOWS\system32下,替换旧的,然后重复上面的步骤,重新注册。

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses]
@="Licensing: Copying the keys may be a violation of established copyrights."

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\096EFC40-6ABF-11cf-850C-08002B30345D]
@="knsgigmnmngnmnigthmgpninrmumhgkgrlrk"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\0BF740FC-3012-11D3-A263-00A0CC24A88F]
@="klolslkleegejeeerfgleefetfsflehejesf"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\12B142A4-BD51-11d1-8C08-0000F8754DA1]
@="aadhgafabafajhchnbchehfambfbbachmfmb"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\190B7910-992A-11cf-8AFA-00AA00C00905]
@="gclclcejjcmjdcccoikjlcecoioijjcjnhng"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\1F3D5522-3F42-11d1-B2FA-00A0C908FB55]
@="gcfjdjecpchcncdjpdejijgcrdoijjfcieod"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\2A5D63FD-BF5A-497d-BFE1-F53CEFC37779]
@="AGDHTTTKRNGHAPDFJHSB"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\2c49f800-c2dd-11cf-9ad6-0080c7e7b78d]
@="mlrljgrlhltlngjlthrligklpkrhllglqlrk"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\38911DA0-E448-11D0-84A3-00DD01104159]
@="mcpckchcdchjcjcclidcgcgchdqdcjhcojpd"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\4250E830-6AC2-11cf-8ADB-00AA00C00905]
@="kjljvjjjoquqmjjjvpqqkqmqykypoqjquoun"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\43478d75-78e0-11cf-8e78-00a0d100038e]
@="imshohohphlmnhimuinmphmmuiminhlmsmsl"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\4D553650-6ABE-11cf-8ADB-00AA00C00905]
@="gfjmrfkfifkmkfffrlmmgmhmnlulkmfmqkqj"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\4F86BADF-9F77-11d1-B1B7-0000F8753F5D]
@="iplpwpnippopupiivjrioppisjsjlpiiokuj"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\556C75F1-EFBC-11CF-B9F3-00A0247033C4]
@="xybiedobrqsprbijaegcbislrsiucfjdhisl"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\57CBF9E0-6AA7-11cf-8ADB-00AA00C00905]
@="aahakhchghkhfhaamghhbhbhkbpgfhahlfle"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\6FB38640-6AC7-11cf-8ADB-00AA00C00905]
@="gdjkokgdldikhdddpjkkekgknesjikdkoioh"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\72E67120-5959-11cf-91F6-C2863C385E30]
@="ibcbbbebqbdbciebmcobmbhifcmciibblgmf "

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\73A4C9C1-D68D-11d0-98BF-00A0C90DC8D9]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\73A4C9C1-D68D-11d0-98BF-00A0C90DC8D9\10.0]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\73A4C9C1-D68D-11d0-98BF-00A0C90DC8D9\10.0\Retail]
@="sbbcdcprktpjtapmmfdacmupasbhscddncgp"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\73A4C9C1-D68D-11d0-98BF-00A0C90DC8D9\11.0]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\73A4C9C1-D68D-11d0-98BF-00A0C90DC8D9\11.0\Retail]
@="sbbcdcprktpjtapmmfdacmupasbhscddncgp"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\74872841-703A-11d1-A3AF-00A0C90F26FA]
@="klglsejeilmereglrfkleeheqkpkelgejgqf"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\78E1BDD1-9941-11cf-9756-00AA00C00908]
@="yjrjvqkjlqqjnqkjvprqsjnjvkuknjpjtoun"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\7C35CA30-D112-11cf-8E72-00A0C90F26F8]
@="whmhmhohmhiorhkouimhihihwiwinhlosmsl"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\80E80EF0-DBBE-11D0-BCE2-00A0C90DCA10]
@="qijimitpmpnpxplpvjnikpkpqoxjmpkpoivj"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\899B3E80-6AC6-11cf-8ADB-00AA00C00905]
@="wjsjjjlqmjpjrjjjvpqqkqmqukypoqjquoun"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\9DF1A470-BA8E-11D0-849C-00A0C90DC8A9]
@="cchcqjejhcgcqcfjpdfcdjkckiqikchcojpd"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\9E799BF1-8817-11cf-958F-0020AFC28C3B]
@="uqpqnqkjujkjjjjqwktjrjkjtkupsjnjtoun"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\A133F000-CCB0-11d0-A316-00AA00688B10]
@="cibbcimbpihbbbbbnhdbeidiocmcbbdbgdoc"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\B08D82D0-3496-44d5-921B-E74D1F013F8C]
@="kvnfkwenasdvnxzvlkjsafnxzvlkcjasfdlwepasd"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\B1692F60-23B0-11D0-8E95-00A0C90F26F8]
@="mjjjccncgjijrcfjpdfjfcejpdkdkcgjojpd"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\B1EFCCF0-6AC1-11cf-8ADB-00AA00C00905]
@="qqkjvqpqmqjjpqjjvpqqkqmqvkypoqjquoun"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\BC96F860-9928-11cf-8AFA-00AA00C00905]
@="mmimfflflmqmlfffrlnmofhfkgrlmmfmqkqj"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\C4145310-469C-11d1-B182-00A0C922E820]
@="konhqhioohihphkouimonhqhvnwiqhhhnjti"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\C4B8C1BC-A36C-4723-AF48-F362BFAB9DF5]
@="eiwzkduejthandlptotuwejwzlodptriweqyahznx"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\CDE57A55-8B86-11D0-b3C6-00A0C90AEA82]
@="ekpkhddkjkekpdjkqemkfkldoeoefkfdjfqe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\CEDD4F80-B43C-11cf-837C-00AA00573EDE]
@="#%gxwaezucfyqpwjgqbcmtsncuhwsnyhiohwxz"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\D015B071-D2ED-11d0-A31A-00AA00688B10]
@="gjdcfjpcmjicjcdcoihcechjlioiccechepd"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\DC4D7920-6AC8-11cf-8ADB-00AA00C00905]
@="iokouhloohrojhhhtnooiokomiwnmohosmsl"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\E32E2733-1BC5-11d0-B8C3-00A0C90DCA10]
@="kmhfimlflmmfpffmsgfmhmimngtghmoflhsg"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses\ED4B87C4-9F76-11d1-8BF7-0000F8754DA1]
@="knlggnmntgggrninthpgmnngrhqhnnjnslsh"


通过这2个方法,一般都可百分百解决,其它控件,如微软的mscomm 控件 Mscomctl.ocx 控件(treeview 树控件 listview列表控件 imagelist等控件都可以参考类似的方法 来解决。

MsComm控件提示没有License 操作步骤:

1.注册MScomm控件
   开始-》运行-》 regsvr32 MScomm32.ocx
   如果在使用Mscomm控件出现如下错误提示:

2.“License information for TMSComm not found.You cannot  use this  control in design mode.”
   则运行如下操作步骤:
  {
    在程序,运行中运行:regedit,进入注册表,在HEKEY_CLASS_ROOT下的LICENSES下新建项目,
    项目名是:4250E830-6AC2-11cf-8ADB-00AA00C00905
    选中此新建项目的对应的右边的默认右击鼠标,选择修改在数值数据中输入:
    kjljvjjjoquqmjjjvpqqkqmqykypoqjquoun
  }
ok!搞定!
另发现安装  Xmind测试版 会导致 comdlg32.ocx 无法使用,提示没有版权,卸载Xmind后正常




分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖 订阅订阅
2#
发表于 2016-4-8 13:02:36 | 只看该作者
谢谢分享
回复

使用道具 举报

3#
发表于 2016-8-3 17:44:00 | 只看该作者
感谢王站
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-11-25 07:38 , Processed in 0.083116 second(s), 29 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表