 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
David M Guest
|
Posted: Mon Sep 11, 2006 6:36 am Post subject: Starting an exe server via VBScript |
|
|
Hi,
I'm experimenting with COM at the moment, and have what as far as I can tell
is a completely standard implementation with a coclass and a
TAutoObjectFactory created on initialization etc, and it works great if my
program is already running when I try to use it via a script:
Dim evo
Set evo = CreateObject("MyProgram.MyApplication")
evo.SayHello
which promptly makes a little Hello dialog appear in my app. Which is good.
The problem is that if my program is not already running and I run this
script then nothing happens for a minute or so and then I get the following
error:
"Error: ActiveX component can't create object:
'MyProgram.MyApplication'; Code: 800A01AD"
which is the same error I would get if the application isn't registered.
What I want to happen is that if the program isn't running, trying to run
this script would start the program and then continue as normal. From what
I've read I thought this would happen automatically. (I've run the program
with /regserver, and as I said it works fine when it's already running.)
So what am I doing wrong?
Any help will be much appreciated :)
Cheers,
David |
|
| Back to top |
|
 |
|
|
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
|
|