Abstract: [C #] NetFrameWork interoperability - interoperability with Unmanaged program.
Under the control program executed by the CLR, called Managed program.
on the contrary,
Program to be executed outside of the implementation phase is called Unmanaged program. COM components, ActiveX interfaces, and Win32 API functions are examples Unmanaged program.
Use exported DLL functions
Recognition DLL function is composed of the following items:
-
Function name or ordinal
-
Where you can find the practice of the DLL file name
Designated entry point
May identify the entry point in the DLL function of position. In Managed project, the original name of the target function or the function can be identified throughout the exchange to limit the entry point ordinal number.
In addition, you can also enter the points corresponding to a different name, actually rename this function.
Prototyping program in Managed
You must know the function name and the name of the DLL export function, the function before you can access the Unmanaged DLL from Managed program. With this information, you can begin to Unmanaged DLL function in the practice of writing Managed definition. In addition, you can also adjust the platform invoke functions and establish ways of marshaling data between functions.
Platform called by example
Use platform invoke marshaling data
Platform called data types
String marshaling
Marshaling classes, structures, and other bits
Original: Large column [C #] NetFrameWork interoperability - interoperability with Unmanaged program.