|
|||||
|
|
#1 |
|
|
am calling SHCreateDirectory() like this: int res = SHCreateDirectory (NULL, "C:\xxxx\pub\download\windows\dotnet"); When I call FormatMessage with res as the dwMessageId I get the result: "The specified path is invalid." I also tried appending a "\" at the end of the new path name and got the same result. The MSDN do***entation claims that this function is supposed to create the intermediate folders (which don't exist when I call the function). Can anyone see an error in this call? Regards Chris Saunders chris.saunders@sympatico.ca |
|
|
#2 | |
|
|
compiler should have warned you about. -- Tim Robinson (MVP, Windows SDK) "Chris Saunders" <chris.saunders@sympatico.cawrote in message news:1j7Db.3180$Ve.403440@news20.bellglobal.com... Quote:
|
|
|
|
#3 | ||
|
|
I tried it a still got the same error return. I wrote another function that uses CreateDirectory to build the subdirectory bit by bit. It works but I would have preferred using the shell function. Regards Chris Saunders chris.saunders@sympatico.ca "Tim Robinson" <tim.at.gaat.freeserve.co.uk@invalid.comwrote in message news:brjogn$3en7t$1@ID-103400.news.uni-berlin.de... Quote:
Quote:
|
||
|
|
#4 | |
|
|
"Chris Saunders" <chris.saunders@sympatico.cawrote in message
news:1j7Db.3180$Ve.403440@news20.bellglobal.com... Quote:
know how it succeeded to pass compilation. Correct code is: int res = SHCreateDirectory(NULL, L"C:\\xxxx\\pub\\download\\windows\\dotnet"); |
|