Originally posted by: Crusty
Originally posted by: Cogman
Originally posted by: Markbnj
Originally posted by: Cogman
Originally posted by: nickbits
No. You use .NET classes, you need the .NET runtime.
Well... You COULD, if you rewrite every .Net class called in your program. However, this is the correct answer without a lot of code rewriting.
This same technique will allow you to run windows programs without windows!

Its amazing what you can accomplish with a little elbow grease and determination
Ask RedSquirrel how his mySQL library is working out! :laugh:
I gave up on it as i had touble finding detailed documentation on the protocol and the password hash functions then put another couple hours of troubleshooting and ended up getting mysql++ working.
I did rewrite lot of .net stuff such as DateTime so that it's portable though. Basically anything I find myself rewriting each time i make a program, I just write a base header for it so I can use it on any platform. My DateTime is actually similar to php's time and uses the same formatting for time, so that it is "standard" to an existing implimentation.
For mysql I ended up writing a mysql++ wraper class though, as mysql++ is sensitive to crashes, so I have error checking built in the class.
One of these days I really want to write a thread class as well, but pthreads is fairly simple on it's own so probably no point in having a wraper for it.