Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ability to build win32 app?

Status
Not open for further replies.

hughLg

Programmer
Feb 18, 2002
136
MY
I've just downloaded and installed Visual C++ Toolkit 2003, window.h can't be found in include folder, can I build win32 program with it? I didn't write win32 application to test it yet as I don't know how to, but I like to know whether I need to download and install extras to build win32 application. My targets are console and win32 in Windows.
 
yes i actually got that same error, even when i changed it to windows.h. ok so here is how i fixed it, don't select empty project during the initial process, so have the compiler automatically generate regular template code for you.

ironically, the compiler generated another file that had the following line & it worked,
...
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>
// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>

// TODO: reference additional headers your program requires here
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top