Thread: Comile problem using latest Dev C++ Compiler

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    6

    Comile problem using latest Dev C++ Compiler

    Hello,
    I am new to the site as well as new to programming.

    I had been using Borlands compiler to write my source code from the console, and came accross the Bloodshed C++ compiler which to me has a much nicer interface, AND allows me to write my source in Windows.

    I can run my source in a console ok with the Dev Compiler, but when I try to run my very basic source code in Windows, the first page of my "Project" is some VERY advanced code that is far above my head right now. From what I understand (and again I'm a novice), this "main.cpp" file has to do with the Windows API so I'm at a loss on where to start with my simple code.

    I love working in Windows as opposed to the black console...
    If anyone can point me in the right direction, I would appreciate it... I have been SCOURING the Internet and apparently I'm the only person on the planet that can't use this compiler.

    Sincerely,
    sdb

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    First, go to File and select Close All. This will clear everything out for you. I prefer to use .cpp files that I keep in a folder on the C:\ drive and run multiple compilers on those files.

    After everything is closed, type Ctrl+O and select the source file you want to use. From there you can compile and run it, this should get you started, working with projects can come later.
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    6

    Thanks Prelude

    Hey,
    Just wanted to extend a thank you for your help.

    I guess i should slow down and keep it easy for a while before I dive into "projects"- I just wanted to make sure that I wasnt missing something there.

    Also, thanks for even replying- I just noticed that my subject on the post reads "comile", and if im not mistaken, typos are one of the BIGGEST problems with code that doesn't run.. <hehe>
    Ok, yeah I know from experience

    Have a great day and thanks,
    sdb

  4. #4
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    I know it's a bit corny, but trying to write programs for Windows using the API is a bit like trying to be a good portrait painter. Sure, you can pick up paint at the store and dabble on a sheet of paper at your desire, but the chances you're going to achieve an advanced level painting aren't very good whe you just start out. Think of the console as the learning area for windows, like those first one hundred or so paintings. Once you get the basics of C++ or C down by working with the console, then go into Windows programming. Until then, you're likely to get in over your head and, unless you are really motivated, get so frustrated you're going to give up. You can always get a paint by number kit and create a reasonable picture faster than you can by doing it from the bottoms up yourself (in Windows programming this would be the equivalent of using Visual Basic), but the really good stuff usually starts with the basic building blocks where you have control over everything--eventually.

  5. #5
    Registered User
    Join Date
    Jun 2003
    Posts
    6

    Thanks Elad

    Elad,
    That is some good advice.
    I seemed to do ok learning in the console, and its true I was never so frustrated as trying to deal with something over my head.

    I appreciate you taking the time to post,

    Sincerely,
    sdb

  6. #6
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    These kind of 1 to 1 chats should be handled through PM's.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  7. #7
    Registered User
    Join Date
    Jun 2003
    Posts
    6

    RE: 1 to 1 "chats"

    Magos,
    I'm sorry I dont understand what you mean...
    I had a legitimate question and I thanked the person that responded- I thought that was the polite thing to do.

    By "these kind of 1 to 1 chats" do you mean like someone types something that has nothing to do with the original post, and offers no help to the person that posted the question, but instead posts a personal message to someone unrelated to the question asked?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Weird compiler (Dev)
    By gavra in forum C Programming
    Replies: 11
    Last Post: 08-03-2008, 01:19 AM
  2. Starting with Dev C ; a problem
    By mabauti in forum C++ Programming
    Replies: 18
    Last Post: 12-05-2007, 11:16 AM
  3. Dev C++ Compiler - True or false?
    By JamesF in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 07-10-2006, 11:03 AM
  4. Dev C++ Compiler, Indentation?
    By Zeusbwr in forum C++ Programming
    Replies: 3
    Last Post: 10-21-2004, 06:13 AM
  5. Microsoft Visual C++ compiler, cast problem?
    By jonnie75 in forum C Programming
    Replies: 5
    Last Post: 11-10-2001, 08:53 AM