473,396 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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
Nov 16 '05 #1
3 1338
On 2004-10-03, Max <no*******@gmail.com> wrote:
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?

--
Tom Shelton [MVP]
Nov 16 '05 #2
Max
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

"Tom Shelton" <to*@YOUKNOWTHEDRILLmtogden.com> wrote in message
news:uu**************@tk2msftngp13.phx.gbl...
On 2004-10-03, Max <no*******@gmail.com> wrote:
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?

--
Tom Shelton [MVP]

Nov 16 '05 #3
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.<

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Ladasky | last post by:
Hi, folks, At the beginning of 2003, I was a frustrated computer user, and lapsed programmer, with problems to solve that screamed for programming. Thanks to the Python language and community, I...
1
by: DC Gringo | last post by:
I have some code that writes log entries upon errors in an VB.NET web app. I can write the Message but in the log, preceding my message is the following: Description: The description for...
2
by: Andy Fish | last post by:
Hi, I am wanting to put some simple logging into my .net app. The basic features will be that errors get logged to a file and that there will be a configuration flag to enable more detailed...
5
by: Venky | last post by:
We have a strange error here. We have an application that is built in VC++ 6.0 and uses a C library built using the same. Now, we have migrated to .Net and have used the same source code to be...
2
by: clintonG | last post by:
The application is a simple form of three textbox controls that results in writing an XML file to the file system of the application root when it runs on the local development machine. I've just...
3
by: Angelos Karantzalis | last post by:
Hi y'all, recently I've come across a situation where a web service needs to deal with an exception that might arise, originating from a COM+ component. It then returns an int value (please...
8
by: Zheng Da | last post by:
I don't know where should I ask the question, so send the email to this group. I choose this group, because I want to write the program with c++ :) I want to write a program which support...
24
by: Charles Ulrich | last post by:
Greetings, I hope my greenness isn't showing too bad by asking this, but I ran across this trivial program today that left me flabbergasted: #define MESSAGE "This account is currently not...
1
by: =?Utf-8?B?R2FuZXNoIE11dGh1dmVsdQ==?= | last post by:
Hello All, Our application write logs to a file in a folder. Before our application starts writing to that file, I want to check if the current user has write access to that file, for example,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.