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 is the purpose of strong name?
define client activated objects (cao)?
What is Remoting?
What are the channels in .net remoting?
Explain the hierarchial description of remoting?
What is unmanaged code?
Explain marshalling and its types in .net remoting
What are dynamic assemblies?
Define a process?
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
what is Client-activated object in remoting?
What are the information required to configure remote objects?
What is asynchronous programming?
What are the security measures exist for .net remoting in system.runtime.remoting?
What is the difference between remoting and webservice?