Hi all!
What is the closest .NET project type to an old ActiveX-exe project?
Thanx!
Printable View
Hi all!
What is the closest .NET project type to an old ActiveX-exe project?
Thanx!
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?
I need an exe (then an indipendent program) that can expose a class and its events.Quote:
What is it your trying to do?
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.Quote:
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 :)
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).
Your right, I went back and looked it up since I haven't used them.
So how would you do this in .Net?
Wish I had a definitive answer..
Possibly through remoting??? :rolleyes:
I would like to find out.
[QUOTE
Possibly through remoting???
[/QUOTE]
Someone give me the same answer, but no one can tell me how :(