<DllImport> examples needed !!
Posted on 2007-11-17
I have the following info from web:
Public Shared Function MessageBox(ByVal [Hwnd] As Integer, ByVal [text] As String, _
ByVal [Caption] As String, ByVal [Type] As Integer) As Integer
public static extern int MessageBox(int [Hwnd], string [text], string [Caption], int [Type]);
Why we are using "extern" in C#.NET ? Can you please provide me entire code in both VB.NET and C#.NET for this example including calling of this Win32 API?