|
-
Mar 3rd, 2006, 04:08 PM
#3
Frenzied Member
Re: stdafx.h, precompiled headers and windows.h
i assume the real problem is that something didn't work, you saw 'include windows.h' and tried that.
if that's the case, know that with an MFC app you're already including a windows.h as you've figured out. you don't need to explicitly include it. the problem is that the windows.h your project is using predates whatever example you were looking at. so, it's simply time to begin using a newer version of windows.h
this is done by grabbing the latest windows/platform sdk (that's compatible with your IDE). once you install it, tell your IDE to use the newer files instead of the ones that came with the product.
you do this by digging around the IDE's options and add the paths to the appropriate subsection (make sure they are listed before the original paths):
Executable files: C:\Program Files\Microsoft Platform SDK\Bin
Include files: C:\Program Files\Microsoft Platform SDK\include
Library files: C:\Program Files\Microsoft Platform SDK\lib
Last edited by dis1411; Mar 3rd, 2006 at 04:19 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|