Command Window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • January Smith

    #1

    Command Window

    When I run the code below after creating an Empty .Net type project and
    adding an Empty C++ file it always opens a command window before displaying
    the form. If I write a similar VB application by starting an Empty Project
    and adding a Code File into which I type my code, it runs without starting a
    command window.

    Is there a project property that specifies that the command window is not
    necessary? If I create the C++ project as a Windows Form Application .NET
    it runs without the command window, but I can't seem to find any project
    properties that identify the need for a command window.

    Thanks,

    January

    #using <mscorlib.dll >

    #using <System.dll>

    #using <System.Windows .Forms.dll>

    using namespace System;

    using namespace System::Windows ::Forms;

    __gc class SimpleForm : public System::Windows ::Forms::Form

    {

    public:

    SimpleForm()

    {

    }

    };

    int main()

    {

    SimpleForm * frm = new SimpleForm;

    Application::Ru n(frm);

    return 0;

    }


Working...