Re: Can this be done?



Others have provided the "how to" of it, so let me just provide some "gotchas". I've only played with this sort of setup twice, and it's been a while, but re-entrance is the biggest concern in a shared ActiveX scenario.

For me, the biggest thing to wrap my head around was Public module-level variables. Depending on your design, you may need to share variables between modules, which is nice and easy...but if you want different data for each process that's attaching to your EXE, you'll need to get creative about how you do that.

I was going to go into a bunch of other issues, but it occurred to me that most, if not all, of them are already covered in the VB help file. In the index, look for "Coffee2.vpb sample application". That's got a great primer on attaching multiple applications to a single ActiveX EXE, and some of the issues involved.


Rob

"Kevin Provance" <casey@xxxxxxxxxxx> wrote in message news:eWy%23mTyMIHA.4136@xxxxxxxxxxxxxxxxxxxxxxx
Okay, lets say I have a standard EXE that uses an ActX DLL to store/read and
write program settings. Now, I have a second standard EXE that wants to
access the already created ActX DLL to read settings that are already set.
Obviously I can use my second EXE to create an instance of that DLL, but it
won't have the settings already selected. Is there some trick making the
second program use the instanced DLL without having to create a new one?

Put another way, I want two different programs to share one instance of the
DLL and the settings it holks.

Possible?

.



Relevant Pages

  • Re: Can this be done?
    ... I have a second standard EXE that wants to ... access the already created ActX DLL to read settings that are already set. ... alternative is when one app changes a piece of data then it should send a ...
    (microsoft.public.vb.general.discussion)
  • Re: Can this be done?
    ... I have a second standard EXE that wants to ... access the already created ActX DLL to read settings that are already set. ... global variables. ...
    (microsoft.public.vb.general.discussion)
  • Re: WSE 3.0 settings
    ... I can make it work by putting all settings in main ... I want to use third party DLL (Or I have to develop a DLL to be used in other ... config file and put it in my main exe file. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: access the calling users config info from a dll?
    ... You should not read exe's app settings directly from inside dll's code. ... reasons to use dll). ... with certain exe, the dll's reuseability is go partially or completely, even ... I'd never read user/app config in dll. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Editors
    ... some strip them on exe files by default. ... "preferred base address" and, yup, relocations are completely ... DLL files, though, aren't loaded into their own address space but are ... EXE's "entry-point", though, is not "special" in that it's just an ...
    (alt.lang.asm)