Why use c++ (instead of c#)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I think of using c++ instead of c# was about speed, but some tells me that
it's not much difference. So, is that only to access the mfc or are others
things that I can do with c++ .net that c# dows not. I think of using directx
for games in c# will be slow, but now every game is made on managed directx
(right?)...

thx...
 
With C++/CLI, you have the following advantages over C# :-

1. Fastest native interop option among all CLI languages through IJW
2. Mixed mode assemblies (native + managed)
3. STL/CLR
4. Deterministic destruction syntax (more intuitive than the C# using block
semantics)
5. Ability to mix with existing MFC, ATL, WTL, STL code-repositories.
6. Continue using the language you are most familar with
 
for games in c# will be slow, but now every game is made on managed

Many games are still developed as native applications, especially those
which are trying to achieve top performance. If Managed code is used in such
games, it is mostly in areas like high-level AI or scripting.

Regards
Ondrej

--
---------------------------------------
Ondrej Spanel
Lead Programmer
Bohemia Interactive Studio
www.bistudio.com
www.flashpoint1985.com
 
Back
Top