Jump to content
  • Advertisement
Sign in to follow this  
Maxim Skachkov

[.net] WIN32 exe-file from a C# code

This topic is 4529 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Good day! Can I receive an WIN32 exe-file from a C# code? In other words, JIT-compiler output pure code under WIN32 (PE exe) or managed code (expanded PE exe)? Thx a lot.

Share this post


Link to post
Share on other sites
Advertisement
NGen.exe will precompile your managed assemblies into native format. But it gets stashed away somewhere in the system, and you still need the managed assembly to run. So, strictly, no.

There are lots of other reasons this doesn't work. Managed apps require a .NET framework to run, even if they're NGen'd.

Share this post


Link to post
Share on other sites
Develop in .NET and put the framework as a requirement to run your application. The more people who develop in .NET, the people will download and install it. This is something new and users will have to conform sooner then later.

Share this post


Link to post
Share on other sites
No, because you will always need the Framework to run your app – that's where the Console class is defined, and you can't write anything without that! But .Net is shipped with XP SP2, so more and more people will have it anyway.

Share this post


Link to post
Share on other sites
Quote:
Original post by Bob Janova
No, because you will always need the Framework to run your app – that's where the Console class is defined, and you can't write anything without that! But .Net is shipped with XP SP2, so more and more people will have it anyway.


Nope, only 1.1, and thats a huge pile of steaming sh*t :) But i think Windows Update gets the 2.0 for you, and theres is the redist version, with its size about 24MB (?) Not a big deal...

Share this post


Link to post
Share on other sites
I'm realy liking this whole .NET setup thing, but I think they should have done some COM magic under the hood. Say I write a program using .NET 3.0, but the next version of windows only ships with .NET 3.1. My program is already obsolete before it ships. I lost the source code too.

My only option is to hack the .exe with the .NET disassembler, see what needs to be fixed for 3.1 compliance, and reassemble the binary.


But other than that minor annoyance, i'm realy loving the platform.

Share this post


Link to post
Share on other sites
You can also have .NET 1.1 and 2.0 installed at the same time and the JIT will use the most appropriately installed version.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!