hi, I'm a new c++ programmer who's trying to learn more about windows programming. I'm currently working with Visual C++ 5.0 Express and I've downloaded then installed the Platform SDK package. Unfortunately, I'm still having trouble including the windows.h package. I've been told that all I need to do is include the correct libraries..I just have no idea how to do that yet ><. Any help would be greatly appreciated. Thanks in advance.
2007-08-17
05:54:58
·
3 answers
·
asked by
SchweppesAle
2
in
Computers & Internet
➔ Programming & Design
here's the compile error I'm getting
------ Build started: Project: Window, Configuration: Debug Win32 ------
Compiling...
Window.cpp
c:\documents and settings\john tripi\my documents\visual studio 2005\projects\brand new\my calculator\window\window\window.cpp(1) : fatal error C1083: Cannot open include file: 'Windows.h': No such file or directory
Build log was saved at "file://c:\Documents and Settings\John Tripi\My Documents\Visual Studio 2005\Projects\Brand New\My Calculator\Window\Window\Debug\BuildLog.htm"
Window - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I've tried windows.h, WINDOWS.h, and Windows.h thinking maybe it's case senstive but nothing works. Here's the code I'm currently trying to use.
#include "Windows.h"
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nShowCmd)
{
MessageBox(NULL, "All your base are belong to us!",
"Hello World", MB_OK | MB_ICONEXCLAMATION);
2007-08-17
06:26:00 ·
update #1