Jump to content
  • Advertisement
Sign in to follow this  
hahaha

Endless Visual C++ 2005 problems...

This topic is 4024 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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???

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
I select win32 and takes me to a win32 application wizard. It says the current project settings are Console Project. I chose next instead of finish. Then there is a header asking for an application type and i chose Windows Application and i checked empty project

Share this post


Link to post
Share on other sites
Sounds like you did not install the Platform SDK properly. nb30.h deals with NetBIOS stuff.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!