Hi
How do you directly call a native function exported from a DLL ?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Jun 27, 2012, 6:06 AM
Example of the DllImport attribute in action:
This example shows the minimum requirements for declaring a C# method that is implemented in a native DLL. The method C.MessageBoxA() is declared with the static and external modifiers, and has the DllImport attribute, which tells the compiler that the implementation comes from the user32.dll, using the default name of MessageBoxA. For more information, look at the Platform Invoke tutorial in the documentation.
Please refer the below link
http://www.dotnetfunda.com/interview/exam5239-how-do-you-directly-call-a-native-function-exported-from-a-dll.aspx
Thanks