SoFunction
Updated on 2025-04-11

C# Learning Basic Concepts Twenty-Five Questions Page 2/4


using System; 
using ; 
using ; 
using ; 
namespace Example03 

    class Program 
    { 
//Note that DllImport is an Attribute Property, defined in the namespace
// When extern is used with DllImport, a static modifier must be added.
        [DllImport("")] 
        public static extern int MessageBox(int Handle, string Message, string Caption, int Type); 
        static int Main() 
        { 
            string myString; 
            ("Enter your message: "); 
            myString = (); 
            return MessageBox(0, myString, "My Message Box", 0); 
        } 
    }