Welcome to Vista Banter. You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact support. |
|
Security and Windows Vista A forum for discussion on security issues with Windows Vista. (microsoft.public.windows.vista.security) |
|
LinkBack | Thread Tools | Display Modes |
|
|||
How to create a file in "Public" on vista OS?
hello.
I use following code to create a file in my programe CFileException Error; CFile oFile; UINT nFlags = CFile::modeCreate | CFile::modeWrite; try { if (oFile.Open(oPath, nFlags,Error)) { oFile.Close(); } } catch (CException * pEx) { pEx-ReportError(); pEx-Delete(); } the function of oFile.Open return false. but in other folder (not in Public folder) is Okay thanks! |