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
Name the distributed systems available apart from .net remoting?
Is it a good design practice to distribute the implementation to remoting client?
Garbage collector?s functionality on unmanaged code ?
About Iunknown interface Queue ,its methods Query Interface Addref,Release and Explain each ?
Explain serialization formatters in .net remoting
Are you aware of containment and Aggregation ?
How are the activation URLs different in case of SAO and CAO in .NET remoting?
Will clr handle unmanaged code or not?
What are the remotable objects in .net remoting?
Explain how can you automatically generate interface for the remotable object in .net with microsoft tools?
Define singlecall activation mode in .net remoting?
What is unmanaged code?
Define a process?
What are the security features in .net remoting?
Define delegates and events?