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

Can you pass SOAP messages through remoting?

1046


What are the ways to renew lifetime leases of objects?

1067


Define the lease of the object?

1024


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

2709


Explain how does assembly versioning in .net prevent dll hell?

1076


What do you mean by windows authentication?

1065


What are the types of remoting?

1007


Which Namespaces is used to achieve the Remoting?

1029


Explain how can you automatically generate interface for the remotable object in .net with microsoft tools?

1012


What is the difference between remoting and webservice?

979


Explain the difference between the registerwellknownservicetype(), registerwellknownclienttype(), registeractivatedservicetype() and registeractivatedclienttype() in .net?

959


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

897


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

1053


What are the remotable objects in .net remoting?

962


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

7587