in reply to Re: Mkdir and utf8
in thread Mkdir and utf8

You right, the example that you give to us works exactly as you say on windows,i'm really not know that windows has two systems calls, i appreciate very much, the problem was finaly solved, i will also investigate the wide call.

Thk U very much ikegami

Replies are listed 'Best First'.
Re^3: Mkdir and utf8
by ikegami (Patriarch) on Nov 08, 2007 at 01:29 UTC

    For example, the system call in question is CreateDirectory.

    BOOL WINAPI CreateDirectory( LPCTSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes );

    If you read down that page, you'll see that it's "implemented as CreateDirectoryW (Unicode) and CreateDirectoryA (ANSI)". CreateDirectory is really just an alias for one of these two actual KERNEL32 functions. If you look in winbase.h, you'll find

    WINBASEAPI BOOL WINAPI CreateDirectoryA( LPCSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes ); WINBASEAPI BOOL WINAPI CreateDirectoryW( LPCWSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes ); #ifdef UNICODE #define CreateDirectory CreateDirectoryW #else #define CreateDirectory CreateDirectoryA #endif
Re^3: Mkdir and utf8
by Anonymous Monk on Nov 08, 2007 at 07:48 UTC
    Win32API::File - Low-level access to Win32 system API calls for files/dirs.