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
Elaborate the term WebService and how it differ from Remoting?
How are the activation URLs different in case of SAO and CAO in .NET remoting?
How can you configure a .net remoting object via xml file?
How to decide which to use .net remoting or asp.net web services?
Can we configure a .net remoting object via xml file?
What are the security features in .net remoting?
Are you aware of containment and Aggregation ?
What are the types of remotable objects?
How do you implement distributed applications in .net?
How can we call methods in remoting asynchronously?
Garbage collector?s functionality on unmanaged code ?
What are the information required to configure remote objects?
Explain how to directly call a native function exported from a dll?
What is the difference beween the registerwellknownservicetype() and registerwellknownclienttype()?
Explain the Flow of remoting?