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

Define proxy in .net remoting?

651


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

692


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

593


Define singleton activation mode in .net remoting?

593


What is fundamental of published or precreated objects in remoting?

674






Which one is better WebService and Remoting ?

710


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

630


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

662


I am developing a project.Title is "Remote Demonstator".Using asp.net and C# Abstact: While administrator moving mouse and clicking on any link in the webpage that action will be performed in Server machine as well as in client machine.The client initially have to log-in and make a phone call to the admin. This is my project. How can i get this? I can create a website but this concept i have to implement in my website.How can i achive this? How to get client system control and how my mouse movings can be visible to client? I request all to please give me a basic idea or some hint. Advance Thanks.

2069


Difference between .net remoting versus distributed com?

661


Which Namespaces is used to achieve the Remoting?

658


Explain serialization formatters in .net remoting

630


What are the threading types?

632


Name the distributed systems available apart from .net remoting?

644


What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services?

1736