Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - CreateObject Failing

Reply
 
Old 05-05-2009   #1 (permalink)
xmp333


 
 

CreateObject Failing

Good Afternoon,


I am trying to use CreateObject to use a COM for a third party product
(BusinessMap):

Set app = CreateObject("BMCom.Iapplication")

It fails with the message "ActiveX component can't create object:
BMCom.IApplication".

Since I was able to use CreateObject on Excel and Microsoft Map Point,
I thought this had to do with registering the component, so I tried
regsvr32 on bmcom.dll, but CreateObject still fails.

Any suggestions would be greatly appreciated. Please post here as I
am having email issues.


Thanks.

My System SpecsSystem Spec
Old 05-05-2009   #2 (permalink)
Alex K. Angelopoulos


 
 

Re: CreateObject Failing

Can you tell us more about the component - where it's from, possibly demo
code available for it that you used as a source?

Off the top of my head, I can point to a few possible causes; more details
can help us help you localize the problem.

(1) Could you confirm that the progid you use should be BMCom.Iapplication,
not BMCom.Application? That's a bit odd for a COM progId name.

(2) Are you running 32-bit or 64-bit Windows?

(3) What exact message do you get when you run regsvr32 against BMCOM.dll?

(4) If you'd like to look in the registry yourself for the ProgId, do this -
it can help you see how things work. Run regedit, and navigate to
HKLM\Software\Classes. Under that will be thousands of subfolders;
BMCOM.IApplication should be one of them (but is apparently not, or you
wouldn't get the failure).


Given what you've described and assuming that registration worked fine, the
most likely issue seems to be that either you need to register some other
component as well, or possibly the programmatic identifier you were given
isn't correct. There are some other possible causes - 32/64 bit use or some
complications that may happen if it's a .NET component, but those are not as
likely based on what you've said.

<xmp333@xxxxxx> wrote in message
news:776e44c3-42ec-49aa-a195-a8c642730d6f@xxxxxx
Quote:

> Good Afternoon,
>
>
> I am trying to use CreateObject to use a COM for a third party product
> (BusinessMap):
>
> Set app = CreateObject("BMCom.Iapplication")
>
> It fails with the message "ActiveX component can't create object:
> BMCom.IApplication".
>
> Since I was able to use CreateObject on Excel and Microsoft Map Point,
> I thought this had to do with registering the component, so I tried
> regsvr32 on bmcom.dll, but CreateObject still fails.
>
> Any suggestions would be greatly appreciated. Please post here as I
> am having email issues.
>
>
> Thanks.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
I think my HDD is failing... General Discussion
SFC Failing! General Discussion
Windows Server 2008, CreateObject and a VB6 dll VB Script
My PC is failing WGA when it didn't before! Vista General
Log on failing Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46