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
What is fundamental of published or precreated objects in remoting?
Define singlecall activation mode in .net remoting?
About Iunknown interface Queue ,its methods Query Interface Addref,Release and Explain each ?
Difference between web services & remoting?
What is the difference beween the registerwellknownservicetype() and registerwellknownclienttype()?
What are the channels in .net remoting?
what is Client-activated object in remoting?
Define proxy in .net remoting?
What is the difference between the RegisterWellknownServiceType(), RegisterWellknownClientType(), RegisterActivatedServiceType() and RegisterActivatedClientType() in .net?
What are the advantage of remoting over web services?
What is objref object in remoting?
What are the difference between static assemblies and dynamic assemblies?
Elaborate the term WebService and how it differ from Remoting?
How can you configure a .net remoting object via xml file?
How are the activation URLs different in case of SAO and CAO in .NET remoting?