BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with COM object

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX)
View previous topic :: View next topic  
Author Message
Blue Knight
Guest





PostPosted: Thu Apr 15, 2004 4:53 pm    Post subject: Problem with COM object Reply with quote



Hi All,

I was wondering if someone could help me with this problem. I have used
BCB6 to create two separate COM DLL's - the second one uses ADO, but I've
tried it without using ADO as well.

I have successfully registered both DLL's on an NT Server. When I use ASP
on the first COM DLL set obj1 = Server.CreateObject("Com1.Intf1"), it works
fine. However, when I use the second COM DLL set obj2 =
Server.CreateObject("Com2.Intf1"), it fails with an unknown interface
error - 80004002.

I have created a VB5 app on the NT Server and managed to successfully create
an object using the second COM DLL set obj1 = CreateObject("Com2.Intf1").

Has anybody ever come across this problem before?

Regards,

Bevan


Back to top
Mark Guerrieri
Guest





PostPosted: Tue Apr 20, 2004 1:20 am    Post subject: Re: Problem with COM object Reply with quote



80004002 = No such interface supported... make supre you don't have a typo
in the 'Com2.Intf1' - obviously make sure Com2 actually implements Intf1...

Mark

"Blue Knight" <bevan231X (AT) Xhotmail (DOT) com> wrote

Quote:
Hi All,

I was wondering if someone could help me with this problem. I have used
BCB6 to create two separate COM DLL's - the second one uses ADO, but I've
tried it without using ADO as well.

I have successfully registered both DLL's on an NT Server. When I use ASP
on the first COM DLL set obj1 = Server.CreateObject("Com1.Intf1"), it
works
fine. However, when I use the second COM DLL set obj2 =
Server.CreateObject("Com2.Intf1"), it fails with an unknown interface
error - 80004002.

I have created a VB5 app on the NT Server and managed to successfully
create
an object using the second COM DLL set obj1 = CreateObject("Com2.Intf1").

Has anybody ever come across this problem before?

Regards,

Bevan





Back to top
Blue Knight
Guest





PostPosted: Tue Apr 20, 2004 10:11 am    Post subject: Re: Problem with COM object Reply with quote



Hi Mark,

Thanks, but I solved the problem after all. It seems that I had created a
COM object instead of an Automation object (apparently it makes a
difference). Also, when I ran regsvr32 it didn't give Everyone at least
Read access to the TYPELIB entry in the Registry, unlike it did for the
other DLL. I still haven't worked that one out, but I can easily edit the
Registry permissions myself for now. Oddly enough though, I didn't have
that problem when I installed it on a Win2k server!

Thanks for the reply anyway.

Regards,

Bevan

"Mark Guerrieri" <markg11 (AT) comcast (DOT) net> wrote

Quote:
80004002 = No such interface supported... make supre you don't have a typo
in the 'Com2.Intf1' - obviously make sure Com2 actually implements
Intf1...

Mark

"Blue Knight" <bevan231X (AT) Xhotmail (DOT) com> wrote in message
news:407ebe34 (AT) newsgroups (DOT) borland.com...
Hi All,

I was wondering if someone could help me with this problem. I have used
BCB6 to create two separate COM DLL's - the second one uses ADO, but
I've
tried it without using ADO as well.

I have successfully registered both DLL's on an NT Server. When I use
ASP
on the first COM DLL set obj1 = Server.CreateObject("Com1.Intf1"), it
works
fine. However, when I use the second COM DLL set obj2 =
Server.CreateObject("Com2.Intf1"), it fails with an unknown interface
error - 80004002.

I have created a VB5 app on the NT Server and managed to successfully
create
an object using the second COM DLL set obj1 =
CreateObject("Com2.Intf1").

Has anybody ever come across this problem before?

Regards,

Bevan







Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.