Results 1 to 23 of 23

Thread: I hope I word this correctly... [Resolved]

Threaded View

  1. #1

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Resolved I hope I word this correctly... [Resolved]

    Please read what I am trying to do, maybe you can offer me some guidance - all I really need is a book for reference and help:


    I want MyProject.MyClass, an ActiveX EXE to load when the OS loads, like a service that runs all day.

    Then in VB6APP1 I create an Object reference:

    VB Code:
    1. Set Object = Server.GetObject(MyProject.MyClass)

    Lets say I change a Property:

    VB Code:
    1. Object.State = 12

    Then VBAPP1 goes away:

    VB Code:
    1. Set Object = Nothing

    Then an hour later in VB6APP2, a totally different app, wants to do the same:

    VB Code:
    1. Set Object = Server.GetObject(MyProject.MyClass)

    Lets say I test the same Property:

    VB Code:
    1. intState = Object.State ' I excpect intState to be 12

    Then VB6APP2 goes away:

    VB Code:
    1. Set Object = Nothing

    Is such a thing possible in the realm of COM and VB6?

    I 'm pretty sure this can be done with C++, but I would very much like to stay working with either VB6 or VB.NET. In other words I need to make a persistent ActiveX EXE server. or service (i think!)

    Thanks for any advice!

    Dave Sell

    < Edit: Changed CreateObject to GetObject >
    Last edited by Dave Sell; Oct 30th, 2004 at 10:04 AM.

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