Windows Forms

Using Visual C++ 2005

Made a windows forms application using Visual C++ 2005, but when i run it I get a console window popping up while my form is running. Guessing one of my project settings is messed. Anyone know which setting is causing the console window to appear when I run my windows form I didn't use the form designer either.



Answer this question

Windows Forms

  • Serge Lobko-Lobanovsky

    When I run the program on another machine I get the following error:

    ____________________________________________________________

    "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem"

    [ OK ]

    ____________________________________________________________


  • Ayman Osman

    Changed the SubSystem from Console to Windows and now I'm getting this error:

    MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup

    using namespace Hello;

    [STAThreadAttribute]

    int main(array<System::String ^> ^args)

    {

    // Enabling Windows XP visual effects before any controls are created

    Application::EnableVisualStyles();

    Application::SetCompatibleTextRenderingDefault(false);

    // Create the main window and run it

    Application::Run(gcnew Form1());

    return 0;

    }


  • richard luo

     


  • ZafarIqbal

    As I mentioned early, feel free to log your feedback at  http://lab.msdn.microsoft.com/productfeedback/default.aspx. this is the best way the owners would hear your voice directly. Reply back with the link for your suggestions on how to improve it and I will be more than happy to follow up myself with the owners.

    If you use the VSTS version, you will be able to create a setup project that will create all needed dependencies for you. This is another way is you can't use click once.

    If you can't get higher editions of Visual Studio then Ted explains 2 ways of doing such SxS installations (using the Express Edition) described at the previous post at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=234213&SiteID=1

    Hope this is helpful!

    Thanks,
    Ayman Shoukry
    Program Manager
    VC++ Team


  • Codoc

    Having the runtime bits in the SxS directory makes it easier to service such bits in the future since the update installer will know exactly where these bits are. I am not sure what do you mean by saying the installer doesn't support Visual C++. Have you tried to create a setup project.

    Any ways, feel free to leave your feedback at http://lab.msdn.microsoft.com/productfeedback/default.aspx. I am sure the owners would appreciate the feedback.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • Guennadiy Vanine


    C++ applications targeting the Common Language Runtime (mixed, pure, and verifiable assemblies) should be deployed using ClickOnce technology. You can use Windows Installer to deploy a managed application, but ClickOnce takes advantage of .NET Framework security features (such as manifest signing) and is therefore recommended. For more information, see ClickOnce Deployment for Visual C++ Applications.

    Meanwhile...

    ClickOnce Deployment in C++
    The Visual C++ development environment does not directly support deployment of Visual C++ projects with ClickOnce, but tools are available to use it.

    Who makes these tools Microsoft If so what are these tools

    Meanwhile...

    Designed for the unique needs of the new application Developer, Visual C++ 2005 Express Edition provides a fun, easy to use, easy to learn tool for building dynamic applications.

    Fun Easy to use Easy to learn


  • charlles

    You could create a new project (make sure you choose New Windows Forms Application) and move your code into the new project

    OR

    Project Properties -> Linker -> System -> SubSystem -> set to "Windows".



  • HexKrak

  • exoloner

    You need to install thwe SxS binaries in theo ther machine.

    See the following links for more details on how to deploy applications:

    http://msdn2.microsoft.com/en-us/library/zebw5zk9.aspx
    http://msdn2.microsoft.com/en-us/library/ms235265.aspx
    http://msdn2.microsoft.com/en-us/library/ms235624.aspx
    Thanks,
    Ayman Shoukry
    VC++ Team


  • Mahmoud Wagdy

    Thanks man.


  • Movescope

    Linker->Advanced->Entry Point->make sure this is main

  • Windows Forms