2011年10月9日 星期日

What is different between CLR console application OR win 32 console application ?

Hi alok kasgar,

Thank you for posting.

CLR applications rely on the .NET framework, and are compiled into intermediate code which is interpreted by the CLR at runtime.  Win32 applications compile/link directly to machine code, and run independently of the CLR system.  Why use one over the other?  A few quick thoughts come to mind:

CLR
 - encourages object-oriented design
 - automated memory management and clean-up
 - easy exception handling
 - well-organized object model
 - probably easy to transition to if you're familiar with MFC

Win32
 - slightly faster
 - provides access via the API to some functionality not available under C++/CLI
 - if you're not already familiar with the Win32 API, you've got a steep learning curve

If you have any questions, please feel free to let me know.

Best Regards,

Larcolais


Source:
What is different between CLR console application OR win 32 console application ?
http://social.msdn.microsoft.com/Forums/ar/vssetup/thread/b8cece47-236b-4e46-a97e-5c6fc7abaf31

沒有留言: