Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
GeneralRe: Delegates and EventHandlers Pin
Jeremy Kimball16-Mar-04 9:04
Jeremy Kimball16-Mar-04 9:04 
GeneralRe: Delegates and EventHandlers Pin
Heath Stewart16-Mar-04 6:38
protectorHeath Stewart16-Mar-04 6:38 
GeneralActive Directory hotswap policy Pin
UltraKev16-Mar-04 4:41
UltraKev16-Mar-04 4:41 
GeneralRe: Active Directory hotswap policy Pin
Heath Stewart16-Mar-04 5:02
protectorHeath Stewart16-Mar-04 5:02 
GeneralRe: Active Directory hotswap policy Pin
UltraKev16-Mar-04 5:14
UltraKev16-Mar-04 5:14 
GeneralRe: Active Directory hotswap policy Pin
Heath Stewart16-Mar-04 5:25
protectorHeath Stewart16-Mar-04 5:25 
Generalmanaged c++ vs. c# Pin
Anonymous16-Mar-04 4:38
Anonymous16-Mar-04 4:38 
GeneralRe: managed c++ vs. c# Pin
Judah Gabriel Himango16-Mar-04 4:56
sponsorJudah Gabriel Himango16-Mar-04 4:56 
Managed C++ gives you untethered access to unmanaged code (C# can do pointers and the like, but only in an unsafe context). Managed C++ is really ugly right now though, especially with all the underscore-underscore keywords. The next version (Whidbey) of Managed C++ promises to improve the syntax of it greatly.

I guess the reason one would choose managed C++ over C# is for shear power and performance. MC++ already gives you more power than you currently have in C#, and Whidbey promises to improve on that. For example, say you created a class that inherits from ArrayList and overrides the OnAdd methods. While C# would have to adhere to the overridden methods, MC++ could actually access the underlying ArrayList and call the base methods, something not possible in C#.

For performance, Whidbey MC++ will supposedly output a .NET IL more highly optimized than any other .NET language. Of course, MC++ can always drop down into unmanaged land or even x86 assembly if you need to write extremely performance critical code.

Finally, if you need to interoperate with the C runtime library, write pure COM objects, or utilize templates, MC++ is a nice option to have.

So there you go, if you like to have fine control over everything and you need to write performance-critical code, MC++ is a nice option at your disposal. Be warned though, there are a few documented bugs using mixed managed/unmanaged code in MC++. That, plus the syntax for MC++ is proposed to change with Whidbey.


---------------------------
He who knows that enough is enough will always have enough.

-Lao Tsu

GeneralRe: managed c++ vs. c# Pin
Heath Stewart16-Mar-04 5:06
protectorHeath Stewart16-Mar-04 5:06 
GeneralRe: managed c++ vs. c# Pin
Judah Gabriel Himango16-Mar-04 5:38
sponsorJudah Gabriel Himango16-Mar-04 5:38 
GeneralRe: managed c++ vs. c# Pin
Heath Stewart16-Mar-04 4:59
protectorHeath Stewart16-Mar-04 4:59 
GeneralRe: managed c++ vs. c# Pin
Nemanja Trifunovic16-Mar-04 5:17
Nemanja Trifunovic16-Mar-04 5:17 
GeneralRe: managed c++ vs. c# Pin
Jeremy Kimball16-Mar-04 6:34
Jeremy Kimball16-Mar-04 6:34 
GeneralDllImport Without Attribute Pin
Werdna16-Mar-04 4:06
Werdna16-Mar-04 4:06 
GeneralRe: DllImport Without Attribute Pin
Heath Stewart16-Mar-04 4:19
protectorHeath Stewart16-Mar-04 4:19 
GeneralRe: DllImport Without Attribute Pin
Jeremy Kimball16-Mar-04 6:46
Jeremy Kimball16-Mar-04 6:46 
Generaladd Xml in C# Pin
bertcox16-Mar-04 2:37
bertcox16-Mar-04 2:37 
GeneralRe: add Xml in C# Pin
rull16-Mar-04 3:34
rull16-Mar-04 3:34 
GeneralRe: add Xml in C# Pin
Philip Fitzsimons16-Mar-04 3:38
Philip Fitzsimons16-Mar-04 3:38 
GeneralRe: add Xml in C# Pin
bertcox16-Mar-04 4:28
bertcox16-Mar-04 4:28 
GeneralRe: add Xml in C# Pin
Philip Fitzsimons16-Mar-04 4:30
Philip Fitzsimons16-Mar-04 4:30 
GeneralRe: add Xml in C# Pin
bertcox16-Mar-04 4:43
bertcox16-Mar-04 4:43 
GeneralRe: add Xml in C# Pin
Philip Fitzsimons16-Mar-04 4:49
Philip Fitzsimons16-Mar-04 4:49 
GeneralRe: add Xml in C# Pin
bertcox16-Mar-04 4:59
bertcox16-Mar-04 4:59 
GeneralRe: add Xml in C# Pin
Philip Fitzsimons16-Mar-04 5:01
Philip Fitzsimons16-Mar-04 5:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.