Can C++ .net make completely unmanaged app easily?

aewarnick

Senior Contributor
Joined
Jan 29, 2003
Messages
1,031
I have been jumping between C++ and C# lately becuase I love the coding ease of C# but am attracted to the speed of C++.

The development environment is just so much better than anything else I have seen.
 
The reason I am asking is because the drawing speed of C++ is so slow compared to C++. Is it possible to create a managed and unmanaged app where the unmanaged part handles the drawing and the managed does everything else?

And if I did that would the drawing still be as fast as C++?
 
Yes, its possible to mix managed and unmanaged code in one Managed C++ app. You will have to create a Managed project and then just declare you classes as not managed (without the __gc keyword).
 
Yeah, since it wont be touched by the framework. But remeber, since it wont be its important that you code your own destructors for the objects you create.
 
Someone just told me that coding with C++ .net is harder than coding pure native C++. I don't think that could be possible.
 
I dont think Managed C++ is harder. Since it uses framework and framework is object oriented it makes a great organization. Win32 platform APIs are procedure oriented, since I think most of it is written in C. I would say that the good of pure C++ comes at a little price :).
 
C++ isn't exactly "hard" like climbing a mountain is hard. It's mostly just tedious, tiring work. It's heavily based on logic and structure so if you plan ahead, you'll be fine.

However, I think C++.NET removes some of the tedium from low-level programming, but still gives you the control you may need with C++. So, no, I don't think C++.NET is "harder".
 
Back
Top