• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

.net in C++

Schadenfroh

Elite Member
If I make use of .net functions, like this code sample in VC++, is it possible to set VC++ up in such a way that it can compile and then run without the .NET framework installed on the target system?

Thanks
 
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.
 
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.

LOL
 
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! 😉
 
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 😀
 
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:
 
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.
 
Back
Top