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


Please Help Members By Posting Answers For Below Questions

Explain serialization formatters in .net remoting

713


define client activated objects (cao)?

810


How to directly call a native function exported from a dll?

748


Can you pass SOAP messages through remoting?

776


What do mean by remotable objects in .net remoting?

695


What are dynamic assemblies?

755


Will clr handle unmanaged code or not?

732


How do you directly call a native function exported from a DLL?

7053


what are the requirements to enable remote components to interact each other?

722


Explain how to perform remoting?

719


What is the proxy of the server object in .net remoting?

762


What are the security features in .net remoting?

741


What are the ways to configure remoting objects before client can use them?

815


What are the remotable objects in .net remoting?

710


About Iunknown interface Queue ,its methods Query Interface Addref,Release and Explain each ?

2758