// JP opened flex table

Click to See Complete Forum and Search --> : Cannot Create ActiveX Component


manshankar
March 6th, 2000, 05:34 AM
Hello All,

I have a problem which goes like this.

I have created some COM dual components using ATL. In VB 6.0 we are using these ActiveX components, I test this by creating an object for each of the components,for some of the components in the dll, it creates the components but for others it gives the following message "ActiveX component can't create object"

And it is behaving differently on different machines, as on one machine it creates object for all ActiveX Components but on others it gives the above error.

I am not able to understand what the problem is or what it could be. Could anyone among you please suggest me on what I can do.

Thanking you in anticipation.

Best Regards,
Shankar

Shankar

amit naidu
March 9th, 2000, 04:58 PM
What kind of components are these? Controls or business objects?
If its a control(.ocx) you can try adding it thro the Projects->components menu.
If its object(.dll) you can try adding it thro the projects->references menu.
After doing this you can create an variable of this type which you will get in the drop doewn when you type something like "Dim obj as ".
also check if all the components are registered properly.

manshankar
March 9th, 2000, 11:14 PM
Hello Naidu,

The components are BusinessObjects and hence it is a .dll, I have registered the DLL and have in the VB project references. And am checking the way you have told me.

As you said some of the components are not registered and that is the problem. Thank you that I found the problem. But now I have a doubt that why are some of the components which this exports having an entry in the registry which why others are not having entries. Can you throw some light into it.

We are in real need of this.

Regards,
Shankar

Shankar

//JP added flex table