mycad 发表于 2013-3-1 17:02:04

vba 添加对话框控件错误

本帖最后由 mycad 于 2013-3-1 17:04 编辑

请教大侠们,我的电脑系统是win xp 的,在autocad2002下使用 vba 编写打开文件对话框程序,先插入窗体,再此窗体上添加commondialog控件,当拖动commondialog控件放入窗体是提示如下错误:“the control could be created because it is not property licensed”,无法添加对话框控件,请高手们赐教,谢谢!!

wwswwswws 发表于 2013-4-2 10:18:57

ocx控件没有注册,在网上搜一下如何注册OCX文件就行了

yz343489954 发表于 2013-5-3 20:15:16

用WIN API函数调用吧,使用控件,程序放别的电脑上,还是要注册

3xxx 发表于 2013-5-11 10:36:17

将下文存成licenses.reg导入注册表试试。

Windows Registry Editor Version 5.00


@="Licensing: Copying the keys may be a violation of established copyrights."


@="knsgigmnmngnmnigthmgpninrmumhgkgrlrk"


@="aadhgafabafajhchnbchehfambfbbachmfmb"


@="gclclcejjcmjdcccoikjlcecoioijjcjnhng"


@="gcfjdjecpchcncdjpdejijgcrdoijjfcieod"


@="mlrljgrlhltlngjlthrligklpkrhllglqlrk"


@="mcpckchcdchjcjcclidcgcgchdqdcjhcojpd"


@="kjljvjjjoquqmjjjvpqqkqmqykypoqjquoun"


@="imshohohphlmnhimuinmphmmuiminhlmsmsl"


@="gfjmrfkfifkmkfffrlmmgmhmnlulkmfmqkqj"


@="iplpwpnippopupiivjrioppisjsjlpiiokuj"


@="xybiedobrqsprbijaegcbislrsiucfjdhisl"


@="aahakhchghkhfhaamghhbhbhkbpgfhahlfle"


"6A7693BA-3139-41fd-BF3D-299961C965D5"="01000000d08c9ddf0115d1118c7a00c04fc297eb01000000308f459c21381243b985c2737b43fb9804000000560000004d006900630072006f0073006f00660074002000560069007300750061006c002000530074007500640069006f00200054007200690061006c002000450064006900740069006f006e0020006400610074006100000003660000a80000001000000069ccfec0844ba70c5230e65e94eee8bc0000000004800000a0000000100000002927315c029bc4149c6f00f34590fd4910000000aeaf76ad3ddc3c1d550e5eca38e4ecfd14000000228741ad4d466bd0feaf02a0f3546c99c26e2864"
@="iqtdwslvccydcyhxabrcudupqdcalezvinyxwsdjgb"
"CCF5A555-D92E-457b-9235-2B326B64035A"="01000000d08c9ddf0115d1118c7a00c04fc297eb01000000308f459c21381243b985c2737b43fb9804000000560000004d006900630072006f0073006f00660074002000560069007300750061006c002000530074007500640069006f00200054007200690061006c002000450064006900740069006f006e0020006400610074006100000003660000a8000000100000007807ae71e92dc029327969ac89eb46ed0000000004800000a0000000100000007f0a11fb4d0c1c85a53e9e6a2666e09208000000fdf3426c67c0a5ed14000000ea98aa89d1909170778d97de3f8035c2e675d080"


@="kefeflhlhlgenelerfleheietfmflelljeqf"


@="gdjkokgdldikhdddpjkkekgknesjikdkoioh"


@="ibcbbbebqbdbciebmcobmbhifcmciibblgmf"






@="sbbcdcprktpjtapmmfdacmupasbhscddncgp"


@="mninuglgknogtgjnthmnggjgsmrmgniglish"


@="klglsejeilmereglrfkleeheqkpkelgejgqf"


@="yjrjvqkjlqqjnqkjvprqsjnjvkuknjpjtoun"


@="whmhmhohmhiorhkouimhihihwiwinhlosmsl"


@="qijimitpmpnpxplpvjnikpkpqoxjmpkpoivj"


@="wjsjjjlqmjpjrjjjvpqqkqmqukypoqjquoun"


@="cchcqjejhcgcqcfjpdfcdjkckiqikchcojpd"


@="uqpqnqkjujkjjjjqwktjrjkjtkupsjnjtoun"


@="cibbcimbpihbbbbbnhdbeidiocmcbbdbgdoc"


@="eesjgjnekjeeheijrfheiegepftigeljfepi"


@="knjnpgognginknggsmnnhnjnumvmlngnrlrk"


@="mjjjccncgjijrcfjpdfjfcejpdkdkcgjojpd"


@="qqkjvqpqmqjjpqjjvpqqkqmqvkypoqjquoun"


@="mmimfflflmqmlfffrlnmofhfkgrlmmfmqkqj"


@="konhqhioohihphkouimonhqhvnwiqhhhnjti"


@="ekpkhddkjkekpdjkqemkfkldoeoefkfdjfqe"


@="gxwaezucfyqpwjgqbcmtsncuhwsnyhiohwxz"


@="gjdcfjpcmjicjcdcoihcechjlioiccechepd"


@="iokouhloohrojhhhtnooiokomiwnmohosmsl"


@="kmhfimlflmmfpffmsgfmhmimngtghmoflhsg"


@="qefaankadbhakbtyfnqosezhvrdusdxrmbaa"


@="knlggnmntgggrninthpgmnngrhqhnnjnslsh"


@="mbmabptebkjcdlgtjmskjwtsdhjbmkmwtrak"

页: [1]
查看完整版本: vba 添加对话框控件错误