Click here to Skip to main content
15,913,181 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralReceiving calls in TAPI Pin
vin15-Jan-03 8:45
vin15-Jan-03 8:45 
GeneralRe: Receiving calls in TAPI Pin
Nick Parker15-Jan-03 8:56
protectorNick Parker15-Jan-03 8:56 
GeneralRe: Receiving calls in TAPI Pin
David Salter15-Jan-03 9:10
David Salter15-Jan-03 9:10 
GeneralRe: Receiving calls in TAPI Pin
vin16-Jan-03 0:17
vin16-Jan-03 0:17 
GeneralSingle Document many views Pin
ns15-Jan-03 8:38
ns15-Jan-03 8:38 
GeneralRe: Single Document many views Pin
valikac15-Jan-03 9:07
valikac15-Jan-03 9:07 
GeneralRe: Single Document many views Pin
ns15-Jan-03 9:07
ns15-Jan-03 9:07 
GeneralProblems w/ saving Pin
brianwelsch15-Jan-03 8:26
brianwelsch15-Jan-03 8:26 
I'm still learning how the Saves are handled in MFC.

I have a file which is marked Read-Only. I select 'Save', and when the 'SaveAs' dialog comes up I try to save the file under the original name. "Do you want to replace?Y/N" , I select Yes.

I have a pop-up warning that in Serialize() that says "read-only you can't save this". Click OK.
Then it looks like a copy of the file MFCxxx.tmp (I think this is a CMirrorFile object) is created in the directory, and the original file gets cleared, but not deleted.

My thought is that the MirrorFile is supposed to replace the original. And because its Read-only I can't delete the original to replace it. Is this an accurate description of whats happening here?

What is the best way/place to avoid this situation and not even try/allow to replace the read-only file?

Thanks.

BW
"Gandalf. Yes. That is what they used to call me. Gandalf the Grey. *I* am Gandalf the White."
- Gandalf the White


Generalreplacing main() Pin
Anonymous15-Jan-03 8:24
Anonymous15-Jan-03 8:24 
GeneralRe: replacing main() Pin
Dave Bryant15-Jan-03 8:43
Dave Bryant15-Jan-03 8:43 
GeneralRe: replacing main() Pin
Anonymous15-Jan-03 8:49
Anonymous15-Jan-03 8:49 
GeneralRe: replacing main() Pin
jhwurmbach15-Jan-03 22:14
jhwurmbach15-Jan-03 22:14 
GeneralCListCtrl and multi-threading Pin
Inor15-Jan-03 8:22
Inor15-Jan-03 8:22 
GeneralRe: CListCtrl and multi-threading Pin
valikac15-Jan-03 9:10
valikac15-Jan-03 9:10 
GeneralRe: CListCtrl and multi-threading Pin
Nitron15-Jan-03 14:26
Nitron15-Jan-03 14:26 
Generaltimeout recv on tcp socket Pin
orcun colak15-Jan-03 8:04
orcun colak15-Jan-03 8:04 
GeneralRe: timeout recv on tcp socket Pin
geo_m15-Jan-03 8:09
geo_m15-Jan-03 8:09 
GeneralRe: timeout recv on tcp socket Pin
Anonymous15-Jan-03 8:55
Anonymous15-Jan-03 8:55 
GeneralCSizingControlBar help needed Pin
Stefan Dahlin15-Jan-03 7:46
Stefan Dahlin15-Jan-03 7:46 
QuestionHow to know if the app is running from a server ?? Pin
Cris15-Jan-03 7:27
Cris15-Jan-03 7:27 
AnswerRe: How to know if the app is running from a server ?? Pin
Erik Juhl15-Jan-03 9:18
Erik Juhl15-Jan-03 9:18 
GeneralRe: How to know if the app is running from a server ?? Pin
Cris15-Jan-03 23:45
Cris15-Jan-03 23:45 
GeneralRe: How to know if the app is running from a server ?? Pin
Erik Juhl16-Jan-03 4:55
Erik Juhl16-Jan-03 4:55 
GeneralCHtmlView Pin
Brian Delahunty15-Jan-03 5:49
Brian Delahunty15-Jan-03 5:49 
GeneralRe: CHtmlView Pin
Stephane Rodriguez.15-Jan-03 6:36
Stephane Rodriguez.15-Jan-03 6:36 

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.