473,386 Members | 2,050 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.

Native Code Compilation

Is it possible to compile .NET code (VB or C#) to native code for easier
installation of some older systems such as win 98?

Thank you,
Samuel
Jan 28 '07 #1
6 2013
"Samuel" <sa************@ntlworld.comschrieb
Is it possible to compile .NET code (VB or C#) to native code for
easier installation of some older systems such as win 98?

All .Net applications are compiled to native code when they are started. You
might consider creating a native image on the destination machine using
ngen.exe.
Armin

Jan 28 '07 #2
"Armin Zingler" <az*******@freenet.dewrote in
news:ed**************@TK2MSFTNGP03.phx.gbl:
All .Net applications are compiled to native code when they are
started. You might consider creating a native image on the destination
machine using ngen.exe.
But you'll still need the .NET runtime right?

It would be nice if you could statically compile a .NET app so that the
runtime is not needed.
Jan 28 '07 #3
"Spam Catcher" <sp**********@rogers.comschrieb
"Armin Zingler" <az*******@freenet.dewrote in
news:ed**************@TK2MSFTNGP03.phx.gbl:
All .Net applications are compiled to native code when they are
started. You might consider creating a native image on the
destination machine using ngen.exe.

But you'll still need the .NET runtime right?
Right.
It would be nice if you could statically compile a .NET app so that
the runtime is not needed.
Static linking is not supported.
Armin
Jan 28 '07 #4
What is the .NET runtime? is it just one dll file

And why everyone (or most people) uses the .NET framework specifically for
Win 98 where it takes so long to load the Framework

Thank you,
Samuel
"Armin Zingler" <az*******@freenet.dewrote in message
news:el**************@TK2MSFTNGP05.phx.gbl...
"Spam Catcher" <sp**********@rogers.comschrieb
>"Armin Zingler" <az*******@freenet.dewrote in
news:ed**************@TK2MSFTNGP03.phx.gbl:
All .Net applications are compiled to native code when they are
started. You might consider creating a native image on the
destination machine using ngen.exe.

But you'll still need the .NET runtime right?

Right.
>It would be nice if you could statically compile a .NET app so that
the runtime is not needed.

Static linking is not supported.
Armin

Jan 28 '07 #5
"Samuel" <sa************@ntlworld.comwrote in
news:uz**************@TK2MSFTNGP03.phx.gbl:
And why everyone (or most people) uses the .NET framework specifically
for Win 98 where it takes so long to load the Framework
It lets you write once deploy anywhere... well more or less :)
Jan 28 '07 #6
"Samuel" <sa************@ntlworld.comschrieb
What is the .NET runtime? is it just one dll file
Several DLLs. A common platform containing basic stuff and an environment
(eg memory managemant) usable by many languages.
And why everyone (or most people) uses the .NET framework specifically for
Win 98 where it takes so long to load the Framework
Maybe because it's required if you write VB.Net applications.
Armin

Jan 29 '07 #7

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

Similar topics

11
by: Andy Chau | last post by:
Is there a .NET or C# to native x86 compiler? I am not looking for just a prejitter progrom like ngen, but a true native compiler like the gcc for java if there is such a thing. Thanks ...
9
by: Herby | last post by:
Is possible to have a managed method within a Native(un-managed) class within a \clr project? E.g. class myClass { public: #pragma managed void myMethod(void);
9
by: Lonewolf | last post by:
Hi everyone.. I was trying to implement callback fucntions in native codes in my VC8 class, and referred to some online codes which use native class nested within managed class. basically of the...
7
by: Daniel Dünker | last post by:
Hello. I was screwing around a bit with the exe-files produced by .Net Compilers and trying to understand how they work... so i ended up at the 6 Byte stub, which calls the _CorExeMain in...
2
by: Bart Simpson | last post by:
I am writing a communications library which makes extensive use of the STL and templates in general. I am using VC7 to compile because of alledged better support for templates etc. However, I...
0
by: Reini | last post by:
We are developing an Asp.Net 2.0 application (Web Administration) for the IIS 5.0 to 6.0 and the W2K to W2K3 operating system. The application consists of several layers. One layer is a .Net 2.0...
8
by: Jack | last post by:
I wonder C# can produce native win32 code. I have read several articles about C#, and I found it very useful because you don't have to remember all the "starting" syntax and you still have a...
0
by: Morgan Cheng | last post by:
I have one webservice written in MC++, which uses another native DLL deployed in %webservice_install_dir%\bin folder. The API invocation between MC++ and native C++ looks seamless. The compilation...
1
by: nabil035 | last post by:
As the title of the question show I want to pass a pinny pointer (C++/CLI) pointer to a native function When Compiling there's no error but the pointer do not contain any value I explain...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.