Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Elaborate the term WebService and how it differ from Remoting?

1003


How are the activation URLs different in case of SAO and CAO in .NET remoting?

2589


How can you configure a .net remoting object via xml file?

1104


How to decide which to use .net remoting or asp.net web services?

939


Can we configure a .net remoting object via xml file?

944


What are the security features in .net remoting?

1041


Are you aware of containment and Aggregation ?

3230


What are the types of remotable objects?

1055


How do you implement distributed applications in .net?

1049


How can we call methods in remoting asynchronously?

1027


Garbage collector?s functionality on unmanaged code ?

3606


What are the information required to configure remote objects?

1020


Explain how to directly call a native function exported from a dll?

1044


What is the difference beween the registerwellknownservicetype() and registerwellknownclienttype()?

1090


Explain the Flow of remoting?

1076