473,386 Members | 1,819 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,386 software developers and data experts.

C# --> .exe

Hello.

Is it somehow possible to create a real exe in C# and not only the IL? I
think for Java there is a possibility...

Greetings and thanks for all information,
Tim.
Nov 16 '05 #1
9 5325
Hi Tim,

For all intents and purposes you do create real exes in C#. They compile
to
filename.exe. You can furthermore create native code to speed up
execution.
If you mean an exe as in a stand alone file being able to run on a sytem
without .Net installed, then no, but neither could you run a file requiring
vbrun300.dll or mfc42.dll if those weren't present.

--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
Elp
Hi,

On Fri, 10 Dec 2004 12:39:03 +0100, Morten Wennevik wrote:
If you mean an exe as in a stand alone file being able to run on a sytem
without .Net installed, then no


Actually yes you can. With something like that:
http://www.remotesoft.com/linker/index.html

But except for very particular situations, you don't want to do that.
Nov 16 '05 #3
"Morten Wennevik" schrieb im Newsbeitrag news:...

Hi Morten,

first of all, thanks for the fast reply.
For all intents and purposes you do create real exes in C#. They compile
to filename.exe. You can furthermore create native code to speed up
execution.
This is what I meant: If you mean an exe as in a stand alone file being able to run on a sytem
without .Net installed, then no, but neither could you run a file requiring vbrun300.dll or mfc42.dll if those weren't present.


But if you copy the dlls everything is ok.
I think in .NET it is not enough to just copy the needed dlls...

So is there a way if one includes all the needed dlls?
Greetings and thanks again,
Tim.
Nov 16 '05 #4

"Elp" <ro********@REMOVEME.hotmail.com> schrieb im Newsbeitrag
news:1n*****************************@40tude.net...
Actually yes you can. With something like that:
http://www.remotesoft.com/linker/index.html


Thanks for that! I´ll take a look at it!
Greetings,
Tim.
Nov 16 '05 #5
On Fri, 10 Dec 2004 13:01:11 +0100, Tim Bücker <ti*************@web.de>
wrote:
"Morten Wennevik" schrieb im Newsbeitrag news:...

Hi Morten,

first of all, thanks for the fast reply.
For all intents and purposes you do create real exes in C#. They compile
to filename.exe. You can furthermore create native code to speed up
execution.


This is what I meant:
If you mean an exe as in a stand alone file being able to run on a sytem
without .Net installed, then no, but neither could you run a file

requiring
vbrun300.dll or mfc42.dll if those weren't present.


But if you copy the dlls everything is ok.
I think in .NET it is not enough to just copy the needed dlls...

So is there a way if one includes all the needed dlls?
Greetings and thanks again,
Tim.


You are correct, it is simpler to just copy the dlls. A more appropriate
example would be DirectX which needs to be installed and not just copied.
There are third party solutions that encapsulate the .net program inside
its own framework, but I don't know how well they are and they are
certainly not free.

Then again, I don't think java is capable of running without the java
framework either.

For now, .net is installed by default from windows 2003 and later, but for
any other versions you need to ensure that it is installed before you can
run any .net programs. You can ship a single installation file (.net
redistributable) with your program much like DirectX is shipped with a
game.

--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #6
By the way, how do you create native code?

"Morten Wennevik" wrote:
Hi Tim,

For all intents and purposes you do create real exes in C#. They compile
to
filename.exe. You can furthermore create native code to speed up
execution.
If you mean an exe as in a stand alone file being able to run on a sytem
without .Net installed, then no, but neither could you run a file requiring
vbrun300.dll or mfc42.dll if those weren't present.

--
Happy Coding!
Morten Wennevik [C# MVP]

Nov 16 '05 #7
On Fri, 10 Dec 2004 04:49:09 -0800, Michael
<Mi*****@discussions.microsoft.com> wrote:
By the way, how do you create native code?


You use ngen.exe, found in the framework directory.

--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #8
Morten Wennevik wrote:
On Fri, 10 Dec 2004 04:49:09 -0800, Michael
<Mi*****@discussions.microsoft.com> wrote:
By the way, how do you create native code?


You use ngen.exe, found in the framework directory.

But you really want to do that as part of your install process, so that
ngen runs on the actual client machine. Otherwise your ngen process will
optimize the .exe for the machine you run that on, and not for the
actual client machine.

Lowell
Nov 16 '05 #9
If you mean a native format exe, you can do so only if you can generate
an ahead of time compiled version of the assembly using ngen.exe. I have
not tried it so I cannot vouch for their working.

with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

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

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

Similar topics

1
by: Christian Schmidbauer | last post by:
Hello! I prepare my XML document like this way: ------------------------------------------------------- PrintWriter writer; Document domDocument; Element domElement; // Root tag
2
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
0
by: Arne Schirmacher | last post by:
I want to display a MySQL database field that can contain HTML markup. If I use <esql:get-string> then I get all of the database field, but all tags are escaped which is not what I want. If I use...
34
by: Mark Moore | last post by:
It looks like there's a pretty serious CSS bug in IE6 (v6.0.2800.1106). The HTML below is validated STRICT HTML 4.01 and renders as I would expect in Opera, FrontPage, and Netscape. For some...
11
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
2
by: bissatch | last post by:
Hi, I am currently writing a simple PHP program that uses an XML file to output rows for a 'Whats New' page. Once written, I will only require updating the XML file and any pages that use the...
0
by: vdex42 | last post by:
Apologies if this has been asked before, but I haven't been able to find the answer to this yet: My problem is that .NET will not allow me to insert escaped '>' characters (i.e. &gt;) within the...
2
by: santaji | last post by:
I am getting xml string in request attribute in following format &lt;files&gt; &lt;file&gt; &lt;filename&gt;somefile.ext&lt;/filename&gt; &lt;/file&gt; &lt;files&gt; the above string I want to convert to tags. expected...
1
by: VaidehiPawar | last post by:
I am a beginner level in xml..my output page does not convert &gt &lt it shows something like this " &lt;b&gt;Location.&lt;/b&gt;&lt;br /&gt; &lt;UL&gt;&lt;LI&gt;Park Central New York " can anyone help? here is my code ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.