Results 1 to 4 of 4

Thread: Sharing DLLs

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    A caravan park in the Midlands (UK)
    Posts
    101

    Unhappy

    I've seen some posts on the various forums about sharing DLLs/ActiveX's between programs but none seem to answer my question....

    I've a single instance ActiveX EXE which is created in one VB program (A). I've another VB program (B) which, at the moment, only needs to get some information from that ActiveX which has been set by (A).

    Is this possible? Program B does not need to set any values in the Active EXE. At the moment my work-around is to have Progam A write to the Registry before passing the values to Active Thang; B reads the registry - it works but it's a bit nasty.
    Anakim

    It's a small world but I wouldn't like to paint it.

  2. #2
    Hyperactive Member Simon Caiger's Avatar
    Join Date
    Aug 2000
    Location
    Rugby, England
    Posts
    377

    Question

    Anakim,

    I have a similar problem.

    I have an ActiveX.exe with which I want to share data between two apps.

    I can get a single app running with the ActiveX but when I run a second app, I can't see the data being changed by the first app.

    I think the problem is to do with multiple instances but I can't figure out how to fix it.

    Did you ever resolve your problem?
    If so some help would be appreciated.
    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.

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    you would need to use GetObject to get an running isntance of the class. Here is how to use GetObject with an ActiveX

    http://www.vbforums.com/showthread.p...etobject+class
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4
    Hyperactive Member Simon Caiger's Avatar
    Join Date
    Aug 2000
    Location
    Rugby, England
    Posts
    377

    Cander,

    Thanks for the reply.
    I'll give it a try.


    I'm not a poet....Honest!!
    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
  •  



Click Here to Expand Forum to Full Width