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
Are you aware of containment and Aggregation ?
What is the difference beween the registeractivatedservicetype() and registeractivatedclienttype()?
Explain how to perform 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.
How do you implement distributed applications in .net?
What are the remotable objects in .net remoting?
What are the difference between static assemblies and dynamic assemblies?
What is unboxing?
What are the security measures exist for .net remoting in system.runtime.remoting?
What do mean by remotable objects in .net remoting?
Explain marshalling and its types in .net remoting
Explain Singleton design pattern of Remoting?
Explain the hierarchial description of remoting?
What are the ways to renew lifetime leases of objects?
What are the types of remoting?