Endless Visual C++ 2005 problems...
I download MSVC 2005 from microsoft but when i click on new project i cant create a dll or a Windows Application project so I searched the microsoft site and found i had to download some other 400mb thing to be able to make dlls and windows applications. I also had to go into some config file and change it to allow me to make dlls and windows appications. That was the least of my worries. If i dont select a precompiled header and i use #include <windows.h> i get an error saying nb40.h(or nb30.h cant remember) can only be used in windows application but my project is a windows application. Have i done something wrong? If i have how can i fix it?
Thanks
Yes, you need the PlatformSDK to do lots of "useful" stuff with the Express Edition. That's normal.
Otherwise it sounds like the normal process of getting any programmer tool to work properly. Programmers like lots of options so they can do 1000s of different things. It's just the nature of our domain to use complicated tools that require effort to set up properly.
-me
Otherwise it sounds like the normal process of getting any programmer tool to work properly. Programmers like lots of options so they can do 1000s of different things. It's just the nature of our domain to use complicated tools that require effort to set up properly.
-me
Quote:Original post by hahaha
Thanks but is there a way to not have to include "stdafx.h"?
Go to the project menu and at the bottom there will be <name of project> properties...
Under configuration properties, under c/c++ there is a bit for precompiled headers just select "Not Using Precompiled Headers" and you shouldn't need to include stdafx.h.
The easiest way is to tell MSVC to create an empty project for you instead of just clicking "Ok" all the way through the project wizard.
Thanks i did that but it then says <windows.h> can only be used in a windows application with this error:
c:\program files\microsoft visual studio 8\vc\include\nb30.h(4) : fatal error C1189: #error : nb30.h can only be used in a Win32 Application
but i dont include nb30.h???
c:\program files\microsoft visual studio 8\vc\include\nb30.h(4) : fatal error C1189: #error : nb30.h can only be used in a Win32 Application
but i dont include nb30.h???
Before you can choose to make an empty project, you must choose whether to make a Win32 project, a Win32 console project etc. Which did you choose?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement