Welcome to Microsoft Developer Support, Languages team blog! You will find a lot of language related troubleshooting resources here.
Browse by Tags
All Tags »
PInvoke (RSS)
-
In this blog I am going to talk about Marshal.StructuretoPtr , especially its last parameter fDeleteOld. Although its msdn description is pretty concise but I have seen it to be a source of confusion a lot of times. Following is what it says: fDeleteOld Read More...
|
-
Suppose you are calling some native code from your managed code, and you observe an Access Violation crash soon after returning from the native code inside your managed code. if you run the application inside the Visual Studio debugger you will see the Read More...
|
-
I am back with some more PInvoke Stuff. Recently I was working on a PInvoke issue which I found interesting. I have a C++ dll which has a function whose signature is int TestFunc(IN_STRUCT in_Params, RET_STRUCT * pret_Par). I wanted to call this function Read More...
|
-
This article talks about marshaling structures using PInvoke which has a pointer to an array of another structure as a member. When calling native functions in a managed application, a frequent question that comes to mind is how to marshal a nested complicated Read More...
|