slight problem on win app tut

This is a discussion on slight problem on win app tut within the C++ Programming forums, part of the General Programming Boards category; hi, the tutorials were great! very clear and understandable (unlike those super long complex boring books that ive seen... >.>) ...

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    4

    slight problem on win app tut

    hi,

    the tutorials were great! very clear and understandable (unlike those super long complex boring books that ive seen... >.>)
    but ive recently decided to use windows app programming, so ive read the tutorials, and under one of them, called <A HREF=http://www.cprogramming.com/tutorial/gl4.html">Windows Programming</A>, in the example it provided, it included a header file which i believe isnt in my library....

    on the fifth line.. it says
    Code:
    #include "stdafx.h"
    and thats sorta my question... did RoD (the author) included that header file somewhere else? or is it because im using a different c++ compiler thingymajigs that i dont already have that file? im using bloodshed dev c++ v4.9.9.9.9.9.9..9.9.9.9.9.9.9..9.99.0 (the latest one, i think), if that helps.

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>#include "stdafx.h"<<

    It's a msvc specific header. Just remove that line or comment it out. Same goes for the #pragma (again, msvc specific) above it, otherwise you'll get a compiler warning. Also, change the first parameter of the CreateWindowEx call from NULL to zero, ditto with the third and fourth parameters to the PeekMessage call. That should just about do it.

    For future reference please direct your windows specific questions to the Windows Programming board.

    Welcome to cprog.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    4
    Ok thanks, that fixed a few problems but i still have a few left.. but ill use the windows specific programming board (sorry, didnt kno this question belonged there!)

  4. #4
    UT2004 Addict Kleid-0's Avatar
    Join Date
    Dec 2004
    Posts
    656
    Quote Originally Posted by JustPlay4Fun
    the tutorials were great! very clear and understandable (unlike those super long complex boring books that ive seen... >.>)
    Hey! When you come across those kinds of books, the best thing you can do is skim for the stuff you want to know at the time. Trying to read front-to-cover will make you become exhausted really fast, and it's very difficult to concentrate. Skimming is the way to go! And use the index as much as possible.

    Long boring books need a special strategy I hope that helps you!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Win API file problem
    By J_Bravo in forum Windows Programming
    Replies: 1
    Last Post: 04-19-2002, 03:38 AM
  2. another slight problem
    By sissoko in forum Windows Programming
    Replies: 2
    Last Post: 01-20-2002, 10:01 PM
  3. OpenGL Tut problem
    By valar_king in forum Game Programming
    Replies: 3
    Last Post: 01-15-2002, 09:08 AM
  4. Texture Problem(I got the NeHe tut working, but I have a problem)
    By SyntaxBubble in forum Game Programming
    Replies: 2
    Last Post: 12-02-2001, 10:40 PM
  5. problem with output
    By Garfield in forum C Programming
    Replies: 2
    Last Post: 11-18-2001, 08:34 PM

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