CreateDirectory() and Directory::CreateDirectory() conflict ...

  • Thread starter Thread starter H.B.
  • Start date Start date
H

H.B.

Hi,

Is there a way to avoid conflicts between CreateDirectory() (from API) and
Directory::CreateDirectory(). The other functions from Directory class
works(Exists() as example). It seems to be caused by the inclusion of
"windows.h" ... but I need it.

I already tried the System::IO::Directory::CreateDirectory() typo.

Any ideas ?

Hugo
 
H.B. said:
Hi,

Is there a way to avoid conflicts between CreateDirectory() (from
API) and Directory::CreateDirectory(). The other functions from
Directory class works(Exists() as example). It seems to be caused by
the inclusion of "windows.h" ... but I need it.

I already tried the System::IO::Directory::CreateDirectory() typo.

Any ideas ?

#undef CreateDirectory after #including windows.h.

-cd
 
Back
Top