Sign in to follow this  
Dko

Not useto VC++ 2005 beta

Recommended Posts

Ok I just had the program covert a project from a book of mine. Well when I compile I get. f:\Slideshow\Bitmap.h(11) : fatal error C1083: Cannot open include file: 'windows': No such file or directory GameEngine.cpp Kinda weird to me how it can't find windows.h. If this is a normal accurace how can I get it to work?

Share this post


Link to post
Share on other sites
Well I didn't think it was neccsarry. Its just a include for windows.h. Like this.

//-----------------------------------------------------------------
// Game Engine Object
// C++ Header - GameEngine.h
//-----------------------------------------------------------------

#pragma once

//-----------------------------------------------------------------
// Include Files
//-----------------------------------------------------------------
#include <windows.h>

//-----------------------------------------------------------------
// Windows Function Declarations
//-----------------------------------------------------------------
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow);
LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);

Share this post


Link to post
Share on other sites
If the error says "Cannot open include file: 'windows'" then maybe you should make it include 'windows.h' instead.

edit: The error says it's on line 11 of 'Bitmap.h', so that's where you should look.

Share this post


Link to post
Share on other sites
Well I get the error for all the includes for windows.h. Just copyed and pasted the one I was looking at.*shrug* EDIT: Ohh that was from when I tried making <windows.h> just <windows> Don't work eigther way.

Share this post


Link to post
Share on other sites
IIRC, the beta doesn't include the platform SDK (just the .NET), so you'd have to download and install it (or if you've got another version of vc.net, just add the appropriate include path).

Share this post


Link to post
Share on other sites
Yay im smart. >< Already uninstalled my old copy of VC++ 6.0 Well ill off to get the SDK then.

Share this post


Link to post
Share on other sites
Acttualy which SDK should I download for a WIN XP sp2 comp? THey have a couple things I could download and its a bit confusing.

Share this post


Link to post
Share on other sites
Gehh! I don't know about anyone else but im having a heck of a time getting anything off the site. It won't let me install the active x control onto IE. Keeps blocking it. >_< Gawd I hate IE and how microsoft makes you use it for there site.

Share this post


Link to post
Share on other sites
Quote:
Original post by Dko
Gehh! I don't know about anyone else but im having a heck of a time getting anything off the site. It won't let me install the active x control onto IE. Keeps blocking it. >_< Gawd I hate IE and how microsoft makes you use it for there site.
Make sure you're running as an Admin when trying to install the ActiveX control.

If all else fails, you can use this page to download it, but it'll require some extra effort.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this