Click here to Skip to main content
16,007,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Odd MFC Property Page Data Loss Pin
Mark Salsbery16-Nov-06 6:24
Mark Salsbery16-Nov-06 6:24 
GeneralRe: Odd MFC Property Page Data Loss Pin
switang16-Nov-06 6:45
switang16-Nov-06 6:45 
QuestionRe: Odd MFC Property Page Data Loss Pin
switang16-Nov-06 11:04
switang16-Nov-06 11:04 
AnswerRe: Odd MFC Property Page Data Loss Pin
Mark Salsbery16-Nov-06 11:21
Mark Salsbery16-Nov-06 11:21 
AnswerRe: Odd MFC Property Page Data Loss Pin
switang17-Nov-06 3:30
switang17-Nov-06 3:30 
GeneralRe: Odd MFC Property Page Data Loss [modified] Pin
switang16-Nov-06 5:10
switang16-Nov-06 5:10 
QuestionReplacement of CComModule and its working Pin
tom groezer16-Nov-06 1:43
tom groezer16-Nov-06 1:43 
QuestionSetting read properites of a file Pin
koumodaki16-Nov-06 1:41
koumodaki16-Nov-06 1:41 
I have a file is one of my projects which stores data and behaves as a circular buffer. Since the data need not be stored continiously in the file, I would like to enable and disable "Read only" property of the file as per the requirement.

So I have written the following code for the file.
ofstream _logs;
const char* _file = "xxx.txt"
ofstream _logs(_file, ios::out,ios::trunc)

The file properties will be handled using the APIs
SetFileAttributes(), GetfileAttributes()

Now I would like to control the data written into file externally from the file properties menu. But I when I uncheck the "Read Only" check box on the file's property menu from windows explorer, the files still behaves as Read Olny and the data does not get written into the file.
Please suggest a solution for this.

GeneralRe: Setting read properites of a file Pin
prasad_som16-Nov-06 2:57
prasad_som16-Nov-06 2:57 
QuestionRe: Setting read properites of a file Pin
David Crow16-Nov-06 2:59
David Crow16-Nov-06 2:59 
AnswerRe: Setting read properites of a file [modified] Pin
koumodaki16-Nov-06 3:19
koumodaki16-Nov-06 3:19 
QuestionMFC Listview Pin
DanB198316-Nov-06 1:34
DanB198316-Nov-06 1:34 
AnswerRe: MFC Listview Pin
prasad_som16-Nov-06 1:55
prasad_som16-Nov-06 1:55 
GeneralRe: MFC Listview Pin
DanB198316-Nov-06 2:19
DanB198316-Nov-06 2:19 
GeneralRe: MFC Listview Pin
prasad_som16-Nov-06 2:26
prasad_som16-Nov-06 2:26 
GeneralRe: MFC Listview Pin
Hamid_RT16-Nov-06 8:05
Hamid_RT16-Nov-06 8:05 
AnswerRe: MFC Listview Pin
switang16-Nov-06 10:55
switang16-Nov-06 10:55 
QuestionProblem in #import statement Pin
Sakthiu16-Nov-06 1:30
Sakthiu16-Nov-06 1:30 
QuestionRe: Problem in #import statement Pin
prasad_som16-Nov-06 1:49
prasad_som16-Nov-06 1:49 
AnswerRe: Problem in #import statement Pin
Sakthiu16-Nov-06 1:56
Sakthiu16-Nov-06 1:56 
QuestionRe: Problem in #import statement Pin
prasad_som16-Nov-06 2:31
prasad_som16-Nov-06 2:31 
AnswerRe: Problem in #import statement Pin
bob1697216-Nov-06 3:27
bob1697216-Nov-06 3:27 
AnswerRe: Problem in #import statement Pin
Hamid_RT16-Nov-06 8:06
Hamid_RT16-Nov-06 8:06 
Questionstrncpy.... [modified] Pin
Programm3r16-Nov-06 1:27
Programm3r16-Nov-06 1:27 
AnswerRe: strncpy.... [modified] Pin
kakan16-Nov-06 2:07
professionalkakan16-Nov-06 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.