Results 1 to 2 of 2

Thread: win32 console application.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    win32 console application.

    i created the hello world test application, it makes this code

    Code:
    // test4.cpp : Defines the entry point for the console application.
    //
    
    #include "stdafx.h"
    
    int main(int argc, char* argv[])
    {
    	printf("Hello World!\n");
    	return 0;
    }

    but how do i actually run it and see the output hello world?

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: win32 console application.

    You select Project->Build from the menu.

    On a side note, you created a non-empty project - this is bad for beginners. Create an empty project and make sure you actually include the correct headers: <stdlib.h> in your case, but that's only because you've written the C-style HelloWorld, not the C++ style as you should (the source file ends in .cpp, which means it's C++.)
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width