Marshaling (Pass/Return) Primitives and Strings - P/INVOKE WITH C# AND C++ TUTORIAL #2

Описание к видео Marshaling (Pass/Return) Primitives and Strings - P/INVOKE WITH C# AND C++ TUTORIAL #2

I demonstrate how to pass and return (marshal) primitives and strings with P/Invokes. Dealing with primitive values is simple, but strings are complicated because strings are primitives in C# but not C++.

C++ is powerful. Whether you need to manage resources more efficiently or you need to use a library that is only available in C++, there are times where you must use C++ in your C# application. P/Invoke is a powerful way to accomplish this. In this series, I will be demonstrating the power of P/Invoke inter-op and showing how you can implement P/Invokes into your own application.

PRIMITIVE TYPE CHART: https://docs.microsoft.com/en-us/dotn...

SOURCE CODE: https://github.com/SingletonSean/P-In...

FULL PLAYLIST:    • P/Invoke  

Комментарии

Информация по комментариям в разработке