Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can´t create activex object

Status
Not open for further replies.

Fursten

Programmer
Dec 27, 2000
403
PT
Hi,

I make a dll (activex dll) and compiled it. After that it appears in the DCOM config of the PC where it was compiled.

After that I took the dll and registered it in another computer (the one I want to use as a server for that dll). I use regsvr32 for that.

After registered, I can´t find an entry for it in DCOM config of the server computer... Does DCOM config only shows activeX exe files? If so, why it happears in the DCOm Congif where I had compiled the dll?

Despite it doesn´t appear in the DCom config of the serevr machine, I run the cliente (standard exe) in the cliente machine. In this exe I make something like this: CreateObject("function.dll","\\Server")

I always get this error: Can´t create activex object. I went to the event viewer and always see this error: DCOM got error "Class not registered " from the computer PC133 when attempting to activate the server:
{1BE02B58-F9DF-48CB-BC17-ADB2051048E0}

I can´t figure out why this happens...

Thank you!
 
look in the help file for CREATEOBJECTEX() this may be fo some help

what are you using as a server? You made need to check this article Q165101 in microsoft knowledge base.

Attitude is Everything
 
Hi,

I´m using win2000 in both, the client and the server.

I just make a activeX dll in PC1 and compile it. After that, in PC1 I get the entry in DCom config to that dll.

However, if I regsvr32 the same dll in another comouter (PC2) the DCom config of this computer will not show my dll... And if I try to run the client in PC1 it will give me those error messages.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top