Sign in to follow this  
jimiwa

VS .net 2005 compiling problem

Recommended Posts

jimiwa    122
I put a couple of source files from a visual c++ .net 2003 project into an empty windows project in visual c++ .net 2005 beta. I got a bunch of compiling errors related to the winNT.h file. What is happening here? What is the winNT.h file, what is its purpose, and how did it get into my project when I didn't add it?

Share this post


Link to post
Share on other sites
Extrarius    1412
Microsoft's downloadable compilers don't include the windows SDK, so you'll have to download it seperately if you intend on using any OS-specific features (as opposed to mostly-ANSI C/C++)

Share this post


Link to post
Share on other sites
jimiwa    122
I ordered the beta on CD.. do I still need to
download the windows sdk?
Still, that doesn't answer my question - what
is the winNT.h file and why is it in my project?

Share this post


Link to post
Share on other sites
jimiwa    122
what's the difference between Visual Studio 2005 beta
and the "windows sdk" ? I looked on microsofts web
site but I don't know what sdk you're talking about.
Could someone please tell me where to find it or
at least what to look for?

Share this post


Link to post
Share on other sites
KorbenDallas    130
The WinNT.h file you're talking about is a header file, used for function definitions, type definitions and whatnot. It's not in your project, but it's probably (indirectly) referenced by a header you're #include-ing.

Share this post


Link to post
Share on other sites
jimiwa    122
OK, I'm wondering what to do about the errors I get
from winNT.h
if someone could help that would be great
this program compiled before in vs 2003 (c++)
so I'm wondering what the difference is in 2005
that gives compiling errors.
these are the #using and #includes in my program:

#using <mscorlib.dll>
#include <windows.h>
#include <windowsx.h>
#include <string.h>
#include <sstream>
#include <ddraw.h>
#include <cmath>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this