Multiple basetsd.h in my include paths... seem to need both, suggestions?

I have a small application that I compile and run in Visual Studio.  I'm running Windows XP Pro with Visual Studio 6 and 2008 installed.  The application makes use of the iphlpapi that comes with the Microsoft SDK.  However, I cannot seem to arrive at the magic to make this thing compile.  This is my directory list for includes:

D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
D:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
D:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
D:\PROGRAM FILES\MICROSOFT SDKS\WINDOWS\V6.0A\INCLUDE

The problem is that the first entry has a basetsd.h file that does not have a UINT16 declaration that other Microsoft header files need.  The last line DOES have a file with the declaration, but this header file is ignored.

I'm adverse to modifying core files provided by the vendor.  Anyone have an idea how to resolve this?
charles_gilleyAsked:
Who is Participating?
 
BalkisBrCommented:
- Select project Properties (right click your project)
- Expand the C/C++ folder and select General
- Click the "Additional Include Directories" and set the folders you want
0
 
charles_gilleyAuthor Commented:
BalkisBr - when you give me these commands, what version of VS are you using?  I have VS6, and the way I would go about doing this is to go to Tools -> Options -> Directories.  
However, I don't think I made myself clear, the problem is that I have two files from MS that are colliding with each other.  The first is pulled in from the first include path, occluding the last path I've added.  If I re-arrange, or drop any entry, it just causes more trouble.
0
 
charles_gilleyAuthor Commented:
BalkisBr - ok, I'm going to guess you are in VS2008 or something more modern than VS6.
 
 
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
BalkisBrCommented:
I'm not using VS6 now,
tomorrow i can take a look on vs6 to remember the folders and provide a better assistance for you.

Meanwhile, have you tried to include the full path to the correct file?

Can you copy paste the errors?
0
 
charles_gilleyAuthor Commented:
What a joke.  Microsoft, please go learn something from Unix.  Using Windows Explorer, I went searching for basetsd.h, none to be found.  The odd part is that the other Windows Explorer I had open was looking right at one.  A little search revealed that Windows Explorer (as well as Microsoft Desktop search) is braindead when searching or files.
So, I downloaded FileBoss V2 (so far looks like a slick piece of s/w), and found on my machine 4 different versions of basetsd.h.  This is only after 6 months on this laptop.  I went back to the old laptop (5 year veteran) - just a single file. Hmmm.
To resolve the issue, I added the "program files\Mcrosoft Platform SD\Include\ folder to the top of the file search path, and I removed the reference to the V6.0a SDK.  Application compiles correctly now.
0
 
charles_gilleyAuthor Commented:
Credit given for taking a shot at it.  Please see my last response for actual correction.  Note: be careful what you install.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.