ESQuicksall
asked on
Search Microsoft include places before my places
I am using Microsoft VC6. I want to search for .h files in the Microsoft places before my places. Is there a way?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have a wrapper for your custom stuff
MyHeader.h which contains
#include ".\customheaders\windows.h " //the customised header with the same name BUT in a subdirectory
and in your app
#include "windows.h" //standard windows header
#include "MyHeader.h" //and this will then find the duplicately named customised header
MyHeader.h which contains
#include ".\customheaders\windows.h
and in your app
#include "windows.h" //standard windows header
#include "MyHeader.h" //and this will then find the duplicately named customised header
ASKER
I had created such a wrapper. I will try it again as you suggested. In my case it is stddef.h which is included by the program as #include <linux/stddef.h>. So I made a linux directory and put a stddef.h there with #include <stddef.h>.
ASKER
That worked. My mistake was that I had put the linux directory in my include search path.
ASKER
But for future reference I'm still wondering if there is a way to tell Microsoft to search its include directories before my include directories.
order of includes - not that I know of to do what you wanted.
ASKER