Link to home
Start Free TrialLog in
Avatar of charles_gilley
charles_gilley

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of BalkisBr
BalkisBr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of charles_gilley
charles_gilley

ASKER

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.
BalkisBr - ok, I'm going to guess you are in VS2008 or something more modern than VS6.
 
 
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?
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.
Credit given for taking a shot at it.  Please see my last response for actual correction.  Note: be careful what you install.