Sign in to follow this  
Zorro26

VGA Dos games with C# ?

Recommended Posts

Hi, Is it possible to program games for ms-dos with c# or c# is only for windows ? I already know that you can do it with c/c++ but i need to know if it's possible also with c# ? Thanks in advance.

Share this post


Link to post
Share on other sites
Why would you want to program games for DOS? If you're going for old-school style, just emulate that style with more current technology.

Share this post


Link to post
Share on other sites
As others have said its not really possible at the moment and probably never will be. I don't think anyone would be crazy enough to write a .NET implementation for DOS.

That said however, C# is not only for Windows, it is available for most modern systems.

Share this post


Link to post
Share on other sites
Wow, this question is weird, that I had to ask google about it.

So, I googled "dos c#" (which is quite a bit less work than registering and account here and typing a lengthy question) and, suprisingly enough, it came up with this!

Amazing!

Edit:
In my excitment I forgot to answer the OPs question. The answer is: Yes, but it's probably a lot easier to dig out that old DOS compiler...

Share this post


Link to post
Share on other sites
Quote:
Original post by Simian Man
Why would you want to program games for DOS? If you're going for old-school style, just emulate that style with more current technology.

Yeah even if you could find a straightforward way to do it it'll be of limited use since most modern Windows i.e. XP,Vista,etc use a DOS virtual machine i.e. emulation so it's not like they'll give you direct access to the vidcard anyways!

Share this post


Link to post
Share on other sites
Quote:
Original post by SimonForsman
That said however, C# is not only for Windows, it is available for most modern systems.


C# != Mono..
While using certain practices with c# will allow it to run with mono, thats like saying any windows program can be used in Linux because of wine. Its not that same and needs to be tested (and ported) with mono.

So C# is only for windows, no MSdos, no linux, and no MacOS. But you can compile it with mono to provide linux / OS X and w/e else mono supports...

Share this post


Link to post
Share on other sites
Quote:
Original post by cherryyosh
Quote:
Original post by SimonForsman
That said however, C# is not only for Windows, it is available for most modern systems.


C# != Mono..
While using certain practices with c# will allow it to run with mono, thats like saying any windows program can be used in Linux because of wine. Its not that same and needs to be tested (and ported) with mono.

So C# is only for windows, no MSdos, no linux, and no MacOS. But you can compile it with mono to provide linux / OS X and w/e else mono supports...


C# is a language defined in a standard. Mono is a cross-platform implementation. Microsoft also has an implementation (I am unsure if theirs has a name). That implementation is Windows-only, but C# the language is cross-platform. Of course you have to pick libraries that are also cross-platform and test your code, but that is true of *all* languages. It isn't like wine at all.

Share this post


Link to post
Share on other sites
Quote:
Original post by Simian Man

C# is a language defined in a standard. Mono is a cross-platform implementation. Microsoft also has an implementation (I am unsure if theirs has a name). That implementation is Windows-only, but C# the language is cross-platform.


I was not aware of that..
I guess I stand corrected. Thanks for the info :P

Share this post


Link to post
Share on other sites
C# is just a language that compiles down to CIL (common intermediate language).
The CLI is the standard that defines how to execute CIL (to keep things simple)
Microsoft's CLR (part of the .net framework) is microsoft's main implementation of the CLI.
Mono is another (or maybe it's a subsystem of mono that should be called that , i don't really know if mono's the implementation of the CLI or the whole package compiler included etc).
It is possible to target anything as long as you have an implementation of the CLI for that same "anything".
Microsoft also provides something named the .net micro framework wich is meant to run on embedded solutions , it can work either over an os or on bare metal , if there are none written for your platform you will need to write your own hardware abstraction layer for it... So odds are you COULD do it for dos , it would be an insane amount of work but i just wanted to give the full info.

click me for infos

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this