PC Review


Reply
Thread Tools Rate Thread

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

 
 
H.B.
Guest
Posts: n/a
 
      6th Jun 2005
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:irectory::CreateDirectory() typo.

Any ideas ?

Hugo




 
Reply With Quote
 
 
 
 
Carl Daniel [VC++ MVP]
Guest
Posts: n/a
 
      6th Jun 2005
H.B. wrote:
> 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:irectory::CreateDirectory() typo.
>
> Any ideas ?


#undef CreateDirectory after #including windows.h.

-cd


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Directory.CreateDirectory Tom Microsoft Dot NET Framework 1 26th Jul 2008 10:35 AM
Directory.CreateDirectory Tom Microsoft Dot NET 4 26th Jul 2008 10:35 AM
Directory.CreateDirectory() issue Ken Microsoft Dot NET Framework 1 12th Nov 2007 07:21 PM
Directory.CreateDirectory problem =?Utf-8?B?Y2FzaGRlc2ttYWM=?= Microsoft C# .NET 5 4th Sep 2007 07:50 AM
Directory.CreateDirectory fails =?Utf-8?B?VG9vbHNtaXRo?= Microsoft C# .NET 2 14th Nov 2006 08:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:43 AM.