How to create a file in "Public" on vista OS?

Posted: 09-13-2006, 09:34 AM
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!



How to create a file in "Public" on vista OS?


Responses to "How to create a file in "Public" on vista OS?"

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

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 On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
ANS: "What's the deal with UAC (Windows Needs Your Permission screens)" and "...But I thought I was an administrator" Jimmy Brush Windows Vista Security 202 07-20-2008 10:29 AM
Right-click no option to create "folder" Dennis555 Windows Vista File Management 5 04-13-2007 05:56 PM
Change location of "Public" folder? Boris Windows Vista File Management 0 01-25-2007 12:38 PM
How to insert the "modified time" attribute in "date taken" attribute in batch mode-in vista or theough a software? paltry Windows Vista File Management 0 11-08-2006 09:06 PM
Windows Vista and "Search for File" in the Cookies Folder saqib ali Windows Vista File Management 5 06-23-2006 01:24 PM