New to windows programming

This is a discussion on New to windows programming within the Windows Programming forums, part of the Platform Specific Boards category; I'm a beginner. I know turbo c++ basics. I have recently started using dev c++, and have just started learning ...

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    3

    New to windows programming

    I'm a beginner. I know turbo c++ basics. I have recently started using dev c++, and have just started learning it(myself).

    I am eager to learn windows programming. The stuff at Forgerwin32 also seems a little hard to understand for me. Where should i start?

  2. #2
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    You can try googleing something like "windows programming tutorials" and reading those. Personally, I suggest getting good at C/C++ first - nothing is wrong with console programs (and they're better, in some respects). Learn about various things, and know what callbacks are before doing windows. (They confused me for quite a while.) For me, I started in C, moved to graphics using Allegro, and finally got used to Windows. I tried Windows early on, but couldn't comprehend the code. It took some time to really... sink in.
    As for tutorials... the forgers is a good one, but get ahold of a copy of the Win32 API. I have one that is a standard .hlp file - it's a tad outdated, but it's 95% accurate, and darn useful, and you can read about the functions you're using alongside the code.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

  3. #3
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Hugger,

    So x is *((int *) NULL).
    Hmmm, what's y?

    CALLBACKS confused me for a bit too, I always ended up using a template.
    (Half of wich I never understood.)
    Last edited by Queatrix; 08-01-2006 at 11:06 AM.

  4. #4
    Codebot
    Join Date
    Jun 2004
    Location
    Toronto
    Posts
    195
    Books:

    Charles Petzold - Windows Programming Fifth Ed.
    Jeffrey Richter - Programming Applications for Windows Fourth Ed.


    Im not a book guy myself, i only use these books as references. I prefer experimenting and reading tutorials, so MSDN really helps and any tutorials you can find on the net.
    Founder and avid member of the Internationsl Typo Associateion

  5. #5
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    First, learn C++ well before learning Windows stuff.
    Second, if you want to learn MFC, dont do that. Go for .NET.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  6. #6
    Disrupting the universe Mad_guy's Avatar
    Join Date
    Jun 2005
    Posts
    258
    Petzold is (sorta-almost-kinda not arguably) the best major introduction to Windows programming you can find. His book is well worth the paper it's written on and worth the paper your money is printed on.

    Jeffrey Richter's book (Programming Applications) is also a very good resource, but it is not for beginners; discusses many more system-level things that are extremely useful to windows developers of all types, but chances are if you've just fresh got off petzold's book, you won't get a lot of it as the API does take time to absorb and understand.
    operating systems: mac os 10.6, debian 5.0, windows 7
    editor: back to emacs because it's more awesomer!!
    version control: git

    website: http://0xff.ath.cx/~as/

  7. #7
    Registered User
    Join Date
    Sep 2005
    Posts
    6
    I'm starting windows programming too and I can easily say that Charles Petzold's "programming windows 5th edition" is fantastic. Truly fantastic. I'm already making windows and painting stuff on them.

    The one thing that's dated is the GDI stuff since GDI+ has pretty much replaced it. I also have Petzold's C# book. The weird thing about his C# book is that he has to use a lot of windows API calls which makes it hard to follow given the Java-esque nature of C#. However, he has a great description of using GDI+ (with C#) but with a little elbow grease and knowledge of C++ you can follow his C# GDI+ examples using C++, in which case I'd also recommend his C# book since its description of GDI+ is great.

    Still though the first book you should get his his 5th edition. You'll be very pleased and it isn't too expensive...
    http://www.amazon.com/gp/product/157...171216?ie=UTF8
    combine that with the free visual c++ express and you can pretty much do it all.

  8. #8
    Registered User
    Join Date
    Sep 2004
    Posts
    123
    It was about 2 or 3 years ago that I downloaded lcc-win32 .... I've not used any other compiler against Windows so not certain how it compares. There is an introduction to Windows programming in its documentation which I found very useful.

    So the documentation for your compiler may not be a bad place to look. It'll "kick-start" you if nothing else and then you can learn the intricacies from other publications.
    I think you can put a signature here.

  9. #9
    Disrupting the universe Mad_guy's Avatar
    Join Date
    Jun 2005
    Posts
    258
    If you're not willing to buy the book, MSDN has many samples over Win32 programming that can break you in (somewhat) easily.
    operating systems: mac os 10.6, debian 5.0, windows 7
    editor: back to emacs because it's more awesomer!!
    version control: git

    website: http://0xff.ath.cx/~as/

  10. #10
    Registered User
    Join Date
    Jul 2006
    Posts
    3
    what is meant by console programming . i mean how do you define the word console.

  11. #11
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    Console programming refers to the little black box window that appears when you run cmd.exe. Basically, it's any command-line application.

  12. #12
    Registered User
    Join Date
    Jul 2006
    Posts
    3

    Question

    I've been given a c++ project at school which requires video handling.
    Is it possible do it with dev or borland compilor. Its like I have to seperate out the frames from the video and then identify certain shapes or objects in that frame.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows 98/2000 programming in Windows XP
    By Bill83 in forum Windows Programming
    Replies: 3
    Last Post: 07-22-2005, 02:16 PM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21