I am using FilePathExists function in two cpp files.
in one file I did not included
#include "Shlwapi.h" but it is compiling.
but in other file if I am not including #include "Shlwapi.h" then
error s coming like this...Can u plz tell me the reason why?
d:\WS\DirectoriesConfigCfg.cpp(675): error C2065: 'PathFileExists' : undeclared identifierThanks
Can I check, do you mean PathFileExists?
You must include shlwapi.h, either directly or indirectly. If you do not include it directly (#include "Shlwapi.h") you may be including another header which in turn includes it. Are you doing that?
If there is no dependency between the two files,i.e, if the second file doesn't include the first file, u must include the header in the second file also.
You have a compiler option Project Properties->Configuration Propterties->C\C++->Advance->Show Includes , set this to yes, and now if you compile the individual file you would see a list of all the header files being included.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?