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
Can you pass SOAP messages through remoting?
What are the ways to renew lifetime leases of objects?
Define the lease of the object?
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
Explain how does assembly versioning in .net prevent dll hell?
What do you mean by windows authentication?
What are the types of remoting?
Which Namespaces is used to achieve the Remoting?
Explain how can you automatically generate interface for the remotable object in .net with microsoft tools?
What is the difference between remoting and webservice?
Explain the difference between the registerwellknownservicetype(), registerwellknownclienttype(), registeractivatedservicetype() and registeractivatedclienttype() in .net?
How to decide which to use .net remoting or asp.net web services?
What is the difference beween the registerwellknownservicetype() and registerwellknownclienttype()?
What are the remotable objects in .net remoting?
How do you directly call a native function exported from a DLL?