How do you directly call a native function exported from a
DLL?
Answer Posted / santhanakumar
HERE IS THE CODE EXAMPLE :
using System.Runtime.InteropServices; \
class C
{
[DllImport("user32.dll")]
public static extern int MessageBoxA(int h, string
m, string c, int type);
public static int Main()
{
return MessageBoxA(0, “Hello
World!”, “Caption”, 0);
}
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the different types of channels used by .net remoting?
Write a example code for remoting?
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.
What are the remotable objects in .net remoting?
What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services?
How can we call methods in remoting asynchronously?
What are the security features in .net remoting?
Define proxy in .net remoting?
Explain the types of .net remoting?
What are the threading types?
Define singlecall activation mode in .net remoting?
What are the advantage of remoting over web services?
Are you aware of containment and Aggregation ?
define client activated objects (cao)?
What is objref object in remoting?