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 the types of .net remoting?

612


What are the types of remoting?

549


Difference between web services & remoting?

610


Define singleton activation mode in .net remoting?

525


When should we choose .net remoting over .net web services?

542






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

6665


What are the advantage of remoting over web services?

498


How can we call methods in remoting asynchronously?

521


What are the security features in .net remoting?

547


what is Client-activated object in remoting?

585


What is the difference between remoting and webservice?

528


What are the different types of channels used by .net remoting and which is the best one?

497


What is the Difference between CAO and SAO in Remoting.

564


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

606


Define proxy in .net remoting?

573