wchar[] and wchar*
novice2
sorry at noem.ail
Thu Apr 9 11:37:37 PDT 2009
Kagamin Wrote:
> novice2 Wrote:
>
> > but sometime wchar* is zero-terminated strings (LPWSTR)
>
> when?
everytime, when you see function with LPWSTR without size passing
for example:
SHGetFolderPathW(HWND hwnd, int csidl, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
GetShortPathNameW( IN LPCWSTR lpszLongPath, OUT LPWSTR lpszShortPath, IN DWORD cchBuffer);
GetLongPathNameW(IN LPCWSTR lpszShortPath, OUT LPWSTR lpszLongPath, IN DWORD cchBuffer);
etc etc etc
More information about the Digitalmars-d-learn
mailing list