Thread: Help!

  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    1

    Help!

    Hello --

    I just compiled a small program in Visual C++ 2005 Express Edition using the command line method by making a .txt file and then pasting the code there. I used "cl/clr filename.cpp" and it makes an executable dos file. When I open the executable file the dos program closes immediately. What am I doing wrong?

    Thanks.

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    First of all, your topic title isn't very unique to your situation and is actually an indication you didn't take very long to think of an important title. Don't be so lazy in the future.

    Secondly, in keeping with my last point, you should search to make sure your questions are not already answered before posting. This one is a very common question with a relatively obvious answer: http://faq.cprogramming.com/cgi-bin/...&id=1043284385

    And lastly, welcome to cboard.

Popular pages Recent additions subscribe to a feed