How to write a exe application which can be also used as a dll library

  • Thread starter Thread starter Max
  • Start date Start date
M

Max

Hi, I am new to .NET.

I want to implement an application which can be run independantly. I also
want it can be used as a dll library. I cannot reference a exe file in
Visual Studio .NET. Can I do it?

Thanks a lot,
Max
 
Hi, I am new to .NET.

I want to implement an application which can be run independantly. I also
want it can be used as a dll library. I cannot reference a exe file in
Visual Studio .NET. Can I do it?

Thanks a lot,
Max

Why don't you put the common functionality into a class libary project
and then reference it from both exe's?
 
Thank you Tom,

Yeah, it is a way to do that. But I noticed that some applications based COM
techniques can do that, such as MS Word. I want a exe file which can run
itself and this exe file can be invoked by other .NET applications. If this
exe file invoked by other applications, it still runs on its own process
other than the process of that application.

I don't know much about COM. I guess this is a feature of COM process model.
Could I do it in .NET framework?

Thanks a lot,
Max
 
Max... You can write native win32 code that can be called by a native
win32
exe and from .NET, but this is advanced stuff. If this is really what
you want
to do, you can do this with C++ ATL COM creating a dll and then calling
the
dll functions from a native C++MFC/VB exe or a managed C# exe.

Regards,
Jeff
I want to implement an application which can be run independantly. I
also
want it can be used as a dll library.<
 
Back
Top