|
-
Dec 4th, 2002, 12:43 PM
#1
Thread Starter
Hyperactive Member
ActiveX .dll works in IDE but not when built *RESOLVED*
Hi,
I have an ActiveX.dll which I have written to basically share data between two clients.
If I build the client .exes and run them on the desktop and run the .dll in the VB environment, everything works fine.
If I then build the .dll and register it, the .exes can no longer see the shared data.
I don't get any automation errors, so I guess the .exes can still access the component.
Any ideas gratefully received.
Last edited by Simon Caiger; Dec 4th, 2002 at 01:20 PM.
Simon Caiger
Documentation is like sex; when it's good, it's very, very good, and when it's bad, it's better than nothing.
-
Dec 4th, 2002, 12:48 PM
#2
Frenzied Member
A dll is loaded in the address space of the application loading it - so each of your applications has it's own copy of the dll so therefore it can't communicate between them.
When you run it in the VB environment it actually runs as an ActiveX exe pretending to be a dll because you can't actually load the VB IDE into the address space of your calling apps - which is why it works in that mode.
-
Dec 4th, 2002, 12:52 PM
#3
Thread Starter
Hyperactive Member
Thanks for the reply,
So I need to build an ActiveX.exe version of the component.
Yes?
Simon Caiger
Documentation is like sex; when it's good, it's very, very good, and when it's bad, it's better than nothing.
-
Dec 4th, 2002, 01:14 PM
#4
Thread Starter
Hyperactive Member
Yep, that works a treat.
I should have remembered the bit about .dlls running in process.
One other question, if you have the time.
It takes about 13ms for a client to get data from the ActiveX server running on the same PC.
I know its going to vary from machine to machine, this is a slow old 233MHz
Is that about right? Seems a bit slow to me.
Simon Caiger
Documentation is like sex; when it's good, it's very, very good, and when it's bad, it's better than nothing.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|