# Code-heads: Any good online C++ for Windows tutorials?  Any book recommendations?

**URL:** <https://boards.straightdope.com/t/code-heads-any-good-online-c-for-windows-tutorials-any-book-recommendations/83909>\
**Category:** In My Humble Opinion\
**Created:** [September 26, 2001, 2:08pm UTC](https://boards.straightdope.com/t/code-heads-any-good-online-c-for-windows-tutorials-any-book-recommendations/83909 "2001-09-26T14:08:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![occ](https://avatars.discourse-cdn.com/v4/letter/o/8c91f0/32.png) [@occ](https://boards.straightdope.com/u/occ)\
**Post date:** [September 26, 2001, 2:08pm UTC](https://boards.straightdope.com/t/code-heads-any-good-online-c-for-windows-tutorials-any-book-recommendations/83909/1 "2001-09-26T14:08:50Z")

</div>

The subject pretty much says it all. I’m fairly competant at C/C++ programming. However, putting it to use in a Windows environment is something I know little about. I’ve been browsing around the web, and found a few small tutorials, but nothing more comprehensive. Are there any good C++ tutorial sites out there that have Windows-specific (messages and all that fun stuff) tutorials?

Also, does anyone have any recommendations on books that would cover this same subject? I’ve browsed through various bookstores, and the sheer number of titles is pretty overwhelming. I need to seperate the wheat from the chaff, as it were.

---

<div class="post-metadata">

**Author:** ![Athena](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@Athena](https://boards.straightdope.com/u/Athena)\
**Post date:** [September 26, 2001, 5:07pm UTC](https://boards.straightdope.com/t/code-heads-any-good-online-c-for-windows-tutorials-any-book-recommendations/83909/2 "2001-09-26T17:07:02Z")

</div>

I don’t know about websites, but you might want to check out books specifically on Visual C++. I know there’s a ton of them. I have one called “Inside Visual C++” that’s pretty good.

Other than that, you’re sort of SOL. The disturbing trend lately is that whenever someone puts out a new API, all the docs and/or books about it use VB examples. It’s not impossible to translate it into C++, but a hassle.

---

<div class="post-metadata">

**Author:** ![DarrenS](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@DarrenS](https://boards.straightdope.com/u/DarrenS)\
**Post date:** [September 26, 2001, 5:18pm UTC](https://boards.straightdope.com/t/code-heads-any-good-online-c-for-windows-tutorials-any-book-recommendations/83909/3 "2001-09-26T17:18:51Z")

</div>

occ -

the “definitive” resource (though not necessarily the most friendly) for all things Visual C++ (assuming you’re using VC++ since you’re under WindowS) is of course [msdn.microsoft.com](http://msdn.microsoft.com). If you’re feeling rich you can even subscribe to MSDN and get it on CD/DVD - it contains exhaustive documentation of the Windows API and the C++ language (although as pointed out previously, it does tend towards VB).

If you’re into COM, check out [http://www.develop.com](http://www.develop.com) - the legendary Don Box works there and there’s tons of good technical advice on the pages. [http://www.devx.com](http://www.devx.com) and [http://www.codeguru.com](http://www.codeguru.com) also have good examples. Also check out the newsgroups - there is one called something ilke comp.lang.vc++ - if you don’t have a news server/news reader software you can get there through [http://www.deja.com](http://www.deja.com).

Also, the discussion groups at [discuss.microsoft.com](http://discuss.microsoft.com) offer a lot of interesting perspectives ( DCOM and ATL are relevant to what you are doing, I assume )

---

<div class="post-metadata">

**Author:** ![aramis](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@aramis](https://boards.straightdope.com/u/aramis)\
**Post date:** [September 26, 2001, 5:42pm UTC](https://boards.straightdope.com/t/code-heads-any-good-online-c-for-windows-tutorials-any-book-recommendations/83909/4 "2001-09-26T17:42:21Z")

</div>

I used the book [url href= “[http://www.amazon.com/exec/obidos/search-handle-form/103-1649177-5193441](http://www.amazon.com/exec/obidos/search-handle-form/103-1649177-5193441)”]SAMS Teach Yourself Visual C++ 6 in 21 days. (I obviously haven’t figured out yet how to make a proper link in the boards. Can anybody point me to an explanation? Until I get edumicated, please cut & paste.)

It starts with the assumption you already know C++ and goes from there, giving a pretty good intro to programming in Windows. Each lesson covers some area specific to Windows and takes and hour or two. I found the explanations to be particularly good because it often explains why things are done as well as how.

---

<div class="post-metadata">

**Author:** ![bashere](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bashere](https://boards.straightdope.com/u/bashere)\
**Post date:** [September 26, 2001, 6:37pm UTC](https://boards.straightdope.com/t/code-heads-any-good-online-c-for-windows-tutorials-any-book-recommendations/83909/5 "2001-09-26T18:37:37Z")

</div>

You might try **Petzold** ’s modestly named _Programming Windows, The Definitive Guide to the Win32 API_. I learned windows programming using his books.

I didn’t much care for _MFC Visual C+ 6_ as a reference, but it might work as a tutorial, should you wish to learn MFC as well as the SDK.

---

<div class="post-metadata">

**Author:** ![Flymaster](https://avatars.discourse-cdn.com/v4/letter/f/c4cdca/32.png) [@Flymaster](https://boards.straightdope.com/u/Flymaster)\
**Post date:** [September 26, 2001, 8:43pm UTC](https://boards.straightdope.com/t/code-heads-any-good-online-c-for-windows-tutorials-any-book-recommendations/83909/6 "2001-09-26T20:43:05Z")

</div>

Forget Petzold. It’s outdated, and uses the API. What you really want is the sequel, also by MSPress, called _Programming Windows with MFC_ by Jeff Prosise. It’s the Petzold of MFC, and makes everything much, much easier.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [September 26, 2001, 8:59pm UTC](https://boards.straightdope.com/t/code-heads-any-good-online-c-for-windows-tutorials-any-book-recommendations/83909/7 "2001-09-26T20:59:32Z")

</div>

The thing is, it kinda makes a difference whether you’re looking to do win32 or MFC programming. Just in case you don’t know, win32 allows you to do stuff like get directory information and other OS-type stuff, whereas MFC allows fancy GUIs. Of course, that’s oversimplified by a lot.

When it comes to the win32 API, MSDN makes for a great reference, but it helps to have a book of some kind if you’re just getting started–there are a lot of different parts to the API, and searching it can be a bit difficult.

I haven’t done a lot of MFC stuff, so I can’t really recommend anything. However, MSDN is once again a great reference.

---

<div class="post-metadata">

**Author:** ![bashere](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bashere](https://boards.straightdope.com/u/bashere)\
**Post date:** [September 26, 2001, 10:51pm UTC](https://boards.straightdope.com/t/code-heads-any-good-online-c-for-windows-tutorials-any-book-recommendations/83909/8 "2001-09-26T22:51:58Z")

</div>

> [@](#):
>
> Forget Petzold. It’s outdated, and uses the API.

It may be dated, but knowing the Win32 API is not with out merit. MFC is not with out its flaws, and knowing the direct API can be extremely helpful in circumventing them. An experianced C++ programmer looking to learn windows programming would have good reason to wish to learn the underlying structure.

---

<div class="post-metadata">

**Author:** ![DarrenS](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@DarrenS](https://boards.straightdope.com/u/DarrenS)\
**Post date:** [September 26, 2001, 11:46pm UTC](https://boards.straightdope.com/t/code-heads-any-good-online-c-for-windows-tutorials-any-book-recommendations/83909/9 "2001-09-26T23:46:59Z")

</div>

Oh yes - for Windows architecture, the “Advanced Windows” book by Jeffrey is pretty definitive.

From the [Amazon.com](http://Amazon.com) editorial:

“Though the source code is written in C here for widest available audience, the programming strategies and technical information is applicable to C++ programming as well.”

---

<div class="post-metadata">

**Author:** ![Chas.E](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@Chas.E](https://boards.straightdope.com/u/Chas.E)\
**Post date:** [September 27, 2001, 3:32am UTC](https://boards.straightdope.com/t/code-heads-any-good-online-c-for-windows-tutorials-any-book-recommendations/83909/10 "2001-09-27T03:32:00Z")

</div>

Try [http://www.informit.com](http://www.informit.com)  
They have tons of online (and free) books on learning C++ and they have the added advantage that they’re searchable. Free registration required (a bogus name will work).
