msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why New does not work on one machine?

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB General Discussions
Author Message
Ed



Joined: 28 Feb 2008
Posts: 2

PostPosted: Thu Feb 28, 2008 12:43 am    Post subject: Why New does not work on one machine? Reply with quote

We have a home grown out of process automation server written in C++.
When I use the following lines it works

Dim objSvr as Object
Set objSvr = CreateObject ("ProgID")

Following also works on several machine we tired except one

Dim objSvr as ClassName
Set objSvr = New ClassName

On that machine we get a error like "ActiveX component cannot create
object" or something very similar. We used the same installation to
install the server and the VB client on every machine.

Any idea what can be wrong.

Thanks in Advance

Archived from group: microsoft>public>vb>general>discussion
Back to top
View user's profile Send private message
MikeD



Joined: 04 Oct 2007
Posts: 3348

PostPosted: Thu Feb 28, 2008 1:55 am    Post subject: Re: Why New does not work on one machine? Reply with quote

"Ed" wrote in message $47c611a5$1860b4f9$15697@KNOLOGY.NET...
> We have a home grown out of process automation server written in C++. When
> I use the following lines it works
>
> Dim objSvr as Object
> Set objSvr = CreateObject ("ProgID")
>
> Following also works on several machine we tired except one
>
> Dim objSvr as ClassName
> Set objSvr = New ClassName
>
> On that machine we get a error like "ActiveX component cannot create
> object" or something very similar. We used the same installation to
> install the server and the VB client on every machine.
>
> Any idea what can be wrong.
>


You need to provide more information (OS, service packs, etc.), but the
underlying, probable reason is that the component is not registered. Why it
didn't get registered on this PC during installation is another matter.
Perhaps it wasn't installed under an account that was a member of the
Administrators group.

--
Mike
Microsoft MVP Visual Basic
Back to top
View user's profile Send private message
Ed



Joined: 28 Feb 2008
Posts: 2

PostPosted: Thu Feb 28, 2008 1:31 am    Post subject: Re: Why New does not work on one machine? Reply with quote

MikeD wrote:
> "Ed" wrote in message
> $47c611a5$1860b4f9$15697@KNOLOGY.NET...
>> We have a home grown out of process automation server written in C++. When
>> I use the following lines it works
>>
>> Dim objSvr as Object
>> Set objSvr = CreateObject ("ProgID")
>>
>> Following also works on several machine we tired except one
>>
>> Dim objSvr as ClassName
>> Set objSvr = New ClassName
>>
>> On that machine we get a error like "ActiveX component cannot create
>> object" or something very similar. We used the same installation to
>> install the server and the VB client on every machine.
>>
>> Any idea what can be wrong.
>>
>
>
> You need to provide more information (OS, service packs, etc.), but the
> underlying, probable reason is that the component is not registered. Why it
> didn't get registered on this PC during installation is another matter.
> Perhaps it wasn't installed under an account that was a member of the
> Administrators group.
>
Thanks for the reply.

OS is XP Pro and VB SP6.

I think the registration is correct. CreateObject on the same object
works correctly. Is there any specific registry needed by New but not by
CreateObject?

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB General Discussions 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, 2005 phpBB Group