Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

C#
Posted

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++?

C#
  • *Experts*
Posted
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).
  • *Experts*
Posted
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.
  • *Experts*
Posted
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 :).
  • *Experts*
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...