By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,948 Members | 1,192 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,948 IT Pros & Developers. It's quick & easy.

another problem :s getting an error :s

P: 21
#include <stdafx.h>
#include <windows.h>

int CALLBACK WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
MessageBox(NULL, "VISUAL PROGRAMMING \n\n FIRST ASSIGNMENT", "Virtual Uinversity of Pakistan", MB_OKCANCEL);
return 0;

I am getting an error "Error1 fatal error C1083: Cannot open include file: 'windows.h': No such file or directory h:\visual studio 2008\projects\pc080400184_cs410_1\pc080400184_cs41 0_1\pc080400184_cs410_1.cpp 5 Pc080400184_cs410_1"

I have installed my vs08 on h drive ...
Nov 5 '08 #1
Share this Question
Share on Google+
5 Replies

Expert 10K+
P: 11,448
Jeez, can't you people think anymore? You installed VS2008 on an h: drive; your
compiler was able to find the first .h file: it only complained about the second .h
file. Bother files are part of that installation. Doesn't your Sherlock Holmes gene
rear its head? I guess not; all you do is ask us on this forum. As if we know what
silly things you have done. Go and check first. Where are these files? Are they
in place? Where does your compiler search for include files? Is your installation
alright? Can you compile and run other (simple) source files?

Don't come to us with those open-ended questions.


ps. cute directory names btw.
Nov 5 '08 #2

P: 21
gosh ........ that was rude ......
Nov 5 '08 #3

Expert 10K+
P: 11,448
gosh ........ that was rude ......
You could also consider it a little hint to start thinking for yourself; don't expect
to be pampered here if you act as a brain dead child. If you do, programming is
not for you.

Nov 5 '08 #4

P: 21
ahaan...........thanks neway..........
Nov 5 '08 #5

Expert 10K+
P: 11,448
ahaan...........thanks neway..........
And please at least try to write proper English; this is an international forum and
your over-punctuated sms babble is hardly readable for your reading audience.

Nov 5 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.