I have a program created in dev-C++. It works find and no errors but when I transfer to microsoft visual C++ express edition I got this error. "No such file or directory found for "windows.h". In dev-C++, I can found windows.h in C:\Dev-Cpp\include but not in Microsoft VC++. Whats the quickest way to solve this?

Thank you!

Recommended Answers

All 3 Replies

Which version of vc++ Express did you install? Earlier versions did not contain windows.h or related headers/libraries, you had to also download windows SDK. Microsoft includes all that with version 2008 (I think that was the version). If you have the older version then uninstall it and download the latest version (free) vc++ 2010 Express. It won't be available much longer because they will be releasing vc++ 2012 soon.

Im using Microsoft VC++ Express 6.0

No you aren't because there was no such thing. Go to the About Box and check the version number.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.