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
Define the lease of the object?
What is the difference beween the registeractivatedservicetype() and registeractivatedclienttype()?
Define singleton activation mode in .net remoting?
What is the difference between the RegisterWellknownServiceType(), RegisterWellknownClientType(), RegisterActivatedServiceType() and RegisterActivatedClientType() in .net?
Hello, I want to connect a system in LAN and i want to access that.When ever i am moving a mouse in my desktop the similar thing have to happend in the another system in which i have connected. I need coding for this in c# and .NET . any one please help me.It is very urgent to me Advance thanks. my email id:manojkumarchallagundla@gmail.com
What is objref object in remoting?
What is asynchronous programming?
What are the security features in .net remoting?
Define delegates and events?
What do you mean by windows authentication?
Explain the difference between the registerwellknownservicetype(), registerwellknownclienttype(), registeractivatedservicetype() and registeractivatedclienttype() in .net?
What do you mean by passport authentication?
What is the difference between remoting and webservice?
Define remotable objects in .net remoting?
What are the advantage of remoting over web services?