Home > Software engineering >  Can't create ActiveX components how to solve
Can't create ActiveX components how to solve

Time:11-08

Have a DLL, installing third-party software (do) in VB6.0 by use, the machine has a

Using VB6.0 by use, by adding a reference, you can directly to the new one object (DLL contains many objects),
Without reference to, can in VB6.0 by use CreateObject,

Question:
1, this DLL, contains many object type, the document said the DLL is a dynamic link library, dynamic link library and DCOM/COM + is a thing?
2, at VB.NET, winform procedure can also be CreateObject directly, but if in. Net environment, use in the web service, CreateObject one of the objects, you will be prompted can't create ActiveX components,
Hair before post https://bbs.csdn.net/topics/396438466
I according to the method of https://blog.csdn.net/milaoshu1020/article/details/104093137, I found the clsids in the registry, according to the clsids also find the name of the object, but can't find the corresponding in the DCOM/COM + components can release permissions, this what is the solution,

thank you

CodePudding user response:

Comexp. MSC - 32

Resources:
https://blog.csdn.net/weixin_34204057/article/details/93672668

CodePudding user response:

reference 1st floor milaoshu1020 response:
comexp. MSC - 32

Resources:
https://blog.csdn.net/weixin_34204057/article/details/93672668


32-bit component services, or not,
Under the registry, it is in this position,
\ HKEY_CLASSES_ROOT \ XXX Vector
But comexp. MSC, did not see have XXX. Vector or XXX, or node Vector,

In the registry, you can see clsids is {09 BDB afe6f7-5-11 d1-9 c2a - 127658000000}, can in a 32-bit component services, according to the clsids query?


CodePudding user response:

Didn't find this: {09 BDB afe6f7-5-11-9 c2a - 127658000000 d1}
The same work;

CodePudding user response:

Don't need to query, list directly, he is alphabetical:

CodePudding user response:

Used in the web service, CreateObject the object, you will be prompted can't create ActiveX components,

Should be a permissions problem, oneself in.net WebService ActiveDLL components created in VB6 wrote there is no problem,

CodePudding user response:



reference milaoshu1020 reply: 3/f
didn't find this: {09 afe6f7-5 BDB - 11-9 c2a d1-127658000000}
The same work;


This is the third party software installed (do) in VB6.0 by use, can be found in the registry,

Shown in the list, the back of the dozens of names and clsids, it can be checked that
But in front of dozens of is a separate name (such as Excel), and clsids different, and the list can only sort by name, not by clsids sorting,

Third-party software has a document to introduce the component (do) in VB6.0 by use, saying he dynamic link libraries, dynamic link libraries are component services can find?

Tip can't create ActiveX components of the Vector, the third party software installation directory, have ABC10 DLL, Vector is one of the object, the document describes the component full name Axxx Bxxx Cxxxx

Can be found in the registry, is Axxx Bxxx Cxxxx and clsids, but in the component services, can not find the ABC or Axxx Bxxx Cxxxx, also can not find the Vector

CodePudding user response:

reference 5 floor vansoft reply:
used in the web service, CreateObject one of the objects, you will be prompted can't create ActiveX components,

Should be a permissions problem, oneself in.net WebService ActiveDLL components created in VB6 wrote there is no problem,


If written by VB6 ActiveDLL, not one of them to call the third party components, call is no problem, the third party components, document is introduced in VB6.0 by use of dynamic link library,
Using VB6.0 by use or VB.NET winform program CreateObject the third-party components is no problem, the web service will prompt wrong,

Can't find this component on the component services (already know clsids) add permissions

CodePudding user response:

I tried it on, VB6 class is shown in the DCOM component Settings for clsids, you can search search;
Is not I teach you... Let's use the sunflower;

CodePudding user response:

refer to the eighth floor milaoshu1020 response:
I tried once, VB6 do class is shown in the DCOM component Settings for clsids, you can search search;
Is not I teach you... Let's use the sunflower;


Thank you,
I said above is the third party software kingdee ERP system, the old system, the underlying VB6.0 by use is made of,
After installation, itself in the component services registered some of the components, starting with KD clsids components don't know yet whether existence,

It says in the web service to create the Vector tip can't create ActiveX, I write so: CreateObject (" KFO. Vector ")
This writing and in VB6.0 by use VB.NET is can create objects,

And KFO, corresponding DLL, is kfo10. DLL, I don't put the component in Kingdee ERP installation of PC, regsvr32, after registering successfully in the registry can check Kingdee Foundation Objects, clsids is
Bda BD29F730-5-11-9 c2a d1-127658000000, as my native clsids in this PC, component services not found bda BD29F730-5-11 d1-9 c2a - 127658000000 this component,

Whether registries, component services will have?

It's convenient, would leave a mailbox, can I put my kfo10. DLL sent to you, this machine can register and see if I can find you,

CodePudding user response:

refer to the eighth floor milaoshu1020 response:
I tried once, VB6 do class is shown in the DCOM component Settings for clsids, you can search search;
Is not I teach you... Let's use the sunflower;


Introduction about KFO, here
https://wenku.baidu.com/view/2f8c5e4de518964bcf847c6b.html

CodePudding user response:

refer to the eighth floor milaoshu1020 response:
I tried once, VB6 do class is shown in the DCOM component Settings for clsids, you can search search;
Is not I teach you... Let's use the sunflower;


KFO. Vector in the registry, there is a separate clsids, but can't find unified component services

CodePudding user response:

Email address has direct messages, you send a DLL to me;

Or the file uploaded to baidu network backup, click share, here also can stick to share code;

CodePudding user response:

refer to 12 floor milaoshu1020 reply:
email address has direct messages, you send a DLL to me;

Or the file uploaded to baidu network backup, click share, here also can stick to share code;


Already send your email, thank you.

CodePudding user response:

I use the VBS script to create objects:
CreateObject (" KFO. Vector ")
Prompt what to do with this:

CodePudding user response:

Looked at the class to create words need to license:

CodePudding user response:

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related