Reputation: 75545
As a developer learning Windows API programming, what are some reasons why I should use native code, and what are some reasons why I should use managed code?
The assumption is that I am equally familiar with both types of development for non-Windows API programming.
Upvotes: 0
Views: 252
Reputation: 14565
generally, it all depends on the amount of control you need, and the amount of time you have to get something done.
you can do things very quickly using the .NET framework, as most of the functionality is built in (albeit cookie-cutter type stuff).
you'd use unmanaged C++ apps using MFC if you need an extremely high level of control over the application and how it reacts to certain events.
Upvotes: 2
Reputation: 18228
.NET: Productivity, ease of development. Some APIs are missing and need to be imported using PInvoke
Win32 API in C++: All APIs are available. Sometimes they are much harder to use because the underlying complexity is not hidden behind .NET classes.
Upvotes: 3