Thread: newbie help :)

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    19

    newbie help :)

    hi i started c++ today and already got a thing to do... but i dont know much about c++ so just wanted to get some help from you

    i am using microsoft visual c++ if you need to know

    is it possible by a button click to fill in the date in one edit box and year/week in another box ?

    and if so, how do i do ?

  2. #2
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    you might want to start off smaller...........a lot smaller..........

    it's not 100% impossible, but very improbable that you can create any windows programs without learning how to create console programs first.


    edit: i suggest VB for a quick fix to your windows urges - but remember, it will only postpone the pain
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    19
    ok i did a bit of c console to learn the basics and the program is a task i got at my job so i have to learn this the hard way i guess

  4. #4
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    I also suggest posting in the appropriate forum, i.e. the Windows Programming message board and not the C++ Programming board.

    Perhaps a moderator can move this?
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  5. #5
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Moved.

    My suggestion is to at least familiarize yourself with all the basic constructs. Then Google for a tutorial that teaches you how to use Visual C+ (never used it myself, so I'm afraid I can't make a recommendation there). Things like the time and date are available through the ctime header file (previously time.h)

  6. #6
    Registered User
    Join Date
    Mar 2005
    Posts
    39
    I know there are alot of tutorials out there..(online)

    however being myself a c++ noobi..I suggest a good book that is general and doesnt use a particular OS or compiler.

    Im currently Reading through C++ a beginners guide by herbert schildt..and ive learnt soo much about c++ in a week..its just crazy!

    just my 2 cents...

    cheers
    Alex

  7. #7
    Registered User
    Join Date
    Apr 2005
    Posts
    19
    Quote Originally Posted by macman
    I know there are alot of tutorials out there..(online)

    however being myself a c++ noobi..I suggest a good book that is general and doesnt use a particular OS or compiler.

    Im currently Reading through C++ a beginners guide by herbert schildt..and ive learnt soo much about c++ in a week..its just crazy!

    just my 2 cents...

    cheers
    Alex
    can you give a link ?

  8. #8
    Registered User
    Join Date
    Mar 2005
    Posts
    39
    yep yep:

    http://www.amazon.co.uk/exec/obidos/...541008-9355620

    (if in usa try amazon.com)

    good luck..I highly recommend this book

  9. #9
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Petzold's 'Programming Windows' is the bible for WIN32 programming.

    >>is it possible by a button click to fill in the date in one edit box and year/week in another box ?

    Yes. MFC or WIN32?

    When clicked the button will send a WM_COMMAND BN_CLICKED msg to the parents callback.
    Use SetWindowText() to write to the edit. (sprintf() to format the string if using char's)


    How are you geting the time/date?
    Do you have the edits or are you starting from scratch?
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  10. #10
    Registered User
    Join Date
    Apr 2005
    Posts
    19
    Quote Originally Posted by novacain
    Petzold's 'Programming Windows' is the bible for WIN32 programming.

    >>is it possible by a button click to fill in the date in one edit box and year/week in another box ?

    Yes. MFC or WIN32?

    When clicked the button will send a WM_COMMAND BN_CLICKED msg to the parents callback.
    Use SetWindowText() to write to the edit. (sprintf() to format the string if using char's)


    How are you geting the time/date?
    Do you have the edits or are you starting from scratch?
    it is MFC and i start from scratch but i might start off a bit smaller as misplaced told me cause i dont understand much of what i am reading at the moment

  11. #11
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    have a look at this app......

    NOTE TEST.DOC IS A ZIP FILE. RENAME AFTER DOWMLOADING! (as zips are not allowed but.....)
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  12. #12
    Registered User
    Join Date
    Apr 2005
    Posts
    19
    Quote Originally Posted by novacain
    have a look at this app......

    NOTE TEST.DOC IS A ZIP FILE. RENAME AFTER DOWMLOADING! (as zips are not allowed but.....)
    wow thats cool!... i am looking forward to the day i start helping people here until then i will ask and learn

    btw thanks for your great help
    Last edited by Jalabert; 04-06-2005 at 05:33 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. newbie: array question :(
    By cstudent in forum C Programming
    Replies: 2
    Last Post: 04-09-2008, 06:46 AM
  2. getting to grips with allegro and ms vc++ (newbie)
    By jimjamjahaa in forum C++ Programming
    Replies: 4
    Last Post: 11-18-2005, 07:49 PM
  3. Newbie in problem with looping
    By nrain in forum C Programming
    Replies: 6
    Last Post: 11-05-2005, 12:53 PM
  4. Some help for a newbie?
    By Ilmater in forum C++ Programming
    Replies: 23
    Last Post: 04-19-2004, 07:44 PM
  5. Newbie Game Develpoers Unite!
    By Telenosis in forum Game Programming
    Replies: 10
    Last Post: 06-22-2002, 02:02 PM