Results 1 to 8 of 8

Thread: ActiveX exe in .NET?

  1. #1

    Thread Starter
    Lively Member neodatatype's Avatar
    Join Date
    Aug 2002
    Location
    Italy
    Posts
    103

    Question ActiveX exe in .NET?

    Hi all!

    What is the closest .NET project type to an old ActiveX-exe project?

    Thanx!
    > NeoDataType.net <

    Try my Free .Net Reporting Tool!

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Class Library is the closest. There really isn't the exact mapping from a ActiveX.Exe to .net. Class Library comes the closest though. What is it your trying to do?

  3. #3

    Thread Starter
    Lively Member neodatatype's Avatar
    Join Date
    Aug 2002
    Location
    Italy
    Posts
    103
    What is it your trying to do?
    I need an exe (then an indipendent program) that can expose a class and its events.

    Using a library I cannot run it by itsself and use its instance both.

    Thanx
    > NeoDataType.net <

    Try my Free .Net Reporting Tool!

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Originally posted by neodatatype
    I need an exe (then an indipendent program) that can expose a class and its events.

    Using a library I cannot run it by itsself and use its instance both.

    Thanx
    Hmmm, not so sure I completely understand. If you create a class library, its classes and events are exposed for you to use. Active X EXE's just don't run by themselves, they need to be called. If you mean you want the class to run in it's own thread, you will have to program in that functionality. If you want that dll's classes to share data with other apps or other instances of your app, you can create static objects that won't have to be instantiated.

  5. #5
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    ActiveX exe can run standalone. You have this option when you compile your project. For example, Microsoft Excel is an ActiveX exe. The GetObject() method will allow you to attached to an already running instance (based on the supplied parameters).
    Last edited by Lethal; Mar 9th, 2003 at 03:00 AM.

  6. #6
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Your right, I went back and looked it up since I haven't used them.

    So how would you do this in .Net?

  7. #7
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Wish I had a definitive answer..
    Possibly through remoting???

    I would like to find out.

  8. #8

    Thread Starter
    Lively Member neodatatype's Avatar
    Join Date
    Aug 2002
    Location
    Italy
    Posts
    103
    [QUOTE
    Possibly through remoting???
    [/QUOTE]

    Someone give me the same answer, but no one can tell me how
    > NeoDataType.net <

    Try my Free .Net Reporting Tool!

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