How do you directly call a native function exported from a
DLL?
Answer Posted / moghan
Yes we can call a native function exported from a Dll in
the following way,
I used C#.Net for Coding.
Add a Namespace that "System.Runtime.InteropServices"
Then use the following code,
Syntax:
[DllImport("dllname")]
here place the function in "dllname" Dll.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
When do we use delegates in your remoting applications?
Define delegates and events?
What are the security features in .net remoting?
What are the steps to publish an object outside the service domain
Which one is better WebService and Remoting ?
What is the proxy of the server object in .net remoting?
How can you configure a .net remoting object via xml file?
What are the ways to renew lifetime leases of objects?
What is the difference beween the registeractivatedservicetype() and registeractivatedclienttype()?
define client activated objects (cao)?
What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services?
What are the different types of channels used by .net remoting?
Which Namespaces is used to achieve the Remoting?
Define proxy in .net remoting?
What are the types of remotable objects?