1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C Compiling Problem

Discussion in 'C' started by Prasanna_Adhikari, Jun 6, 2012.

  1. Prasanna_Adhikari

    Prasanna_Adhikari New Member

    Joined:
    Jun 3, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    I'm pretty confused where to post this. I do hope this is the right place. I was using Turbo C++ 3.0 to compile my C Programs. Now I have started learning C under Windows, I need a new compiler for creating Windows related applications, I somehow managed to get Visual Studio 2010, but I am unable to compile windows related programs, it only compiles simple C programs that I was compiling using Turbo C++.

    Is it that, Visual Studio 2010 Professional Edition doesn't support Windows related C programs, or I am just a kid who doesn't know how to configure it? :D

    I'm waiting for your help........:)
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    New Project
    expand Visual C++ in the left pane
    select Win32

    So far so good, this is what you've done previously.

    Now, instead of selecting "Win32 Console Application" (which gives you a DOS-based program with main()), select "Win32 Project".

    Give it a name and hit OK.

    In the Win32 Application Wizard, select Windows Application in the Application Settings (should be on by default, but if for any reason it isn't, you can change it here), then click Finish.

    This will create a barebones Windows application for you. Build and run it and you'll get a basic Windows program complete with resizable main window and a starter menu.
     
    Prasanna_Adhikari likes this.
  3. Prasanna_Adhikari

    Prasanna_Adhikari New Member

    Joined:
    Jun 3, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Thanks xpi0t0s, I was using Win32 Console Application. Now I am able to compile my first program under Windows that displays "Hello!" successfully in a message box using Win32 Project.
     

Share This Page