Click here to Skip to main content
15,917,060 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
Sam Hobbs12-Dec-06 19:26
Sam Hobbs12-Dec-06 19:26 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
Stephen Hewitt12-Dec-06 19:32
Stephen Hewitt12-Dec-06 19:32 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
Sam Hobbs12-Dec-06 20:29
Sam Hobbs12-Dec-06 20:29 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
Stephen Hewitt13-Dec-06 10:05
Stephen Hewitt13-Dec-06 10:05 
QuestionMultiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs12-Dec-06 10:41
lctrncs12-Dec-06 10:41 
AnswerRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Mark Salsbery12-Dec-06 11:29
Mark Salsbery12-Dec-06 11:29 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs13-Dec-06 7:48
lctrncs13-Dec-06 7:48 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Mark Salsbery13-Dec-06 8:27
Mark Salsbery13-Dec-06 8:27 
lctrncs wrote:
If I try to save the first instance of the file using the first instance of my app, a First Chance Exception occurs that passes "access denied" back to the program.


How are you saving the file? Have you overridden OnSaveDocument() as well? If not, then you
should, and use CloseHandle() to close the file handle returned by CreateFile() in your
OnOpenDocument() override.

lctrncs wrote:
As a biochemistry type, I find programming to be like an incredibly difficult puzzle. You can move the parts around and try them here and there, and eventually they fit. I am trying to learn what the parts are and how they fit together, but my numb biologist's brain may not be correctly configured for such endeavors.


Thanks for reminding me that questions can come from a different point of view. Apparently I'm
bitter about the Doc/View architecture. I used it for years with both Borland's OWL framework
and MFC (even had an article published on the subject). Because of the direction my user
interface code ended up going, Doc/View became more and more of a nuisance and at this point
I still have code using it a bit but not completeley. Some day I hope to have the time to remove
it. It's actually a great model and well implemented in MFC for RAD but I've found that extending
it gets complex unless one knows the MFC code intimately. I guess I have a love/hate relationship
with Doc/View. Way off topic, I know, but my comment in the first reply was really unnecessary
and you reminded me of that, so thanks Smile | :)
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs14-Dec-06 10:57
lctrncs14-Dec-06 10:57 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs14-Dec-06 11:00
lctrncs14-Dec-06 11:00 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Mark Salsbery14-Dec-06 11:34
Mark Salsbery14-Dec-06 11:34 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs14-Dec-06 13:06
lctrncs14-Dec-06 13:06 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Mark Salsbery14-Dec-06 13:36
Mark Salsbery14-Dec-06 13:36 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs14-Dec-06 14:18
lctrncs14-Dec-06 14:18 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Mark Salsbery14-Dec-06 16:12
Mark Salsbery14-Dec-06 16:12 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs15-Dec-06 8:05
lctrncs15-Dec-06 8:05 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Mark Salsbery15-Dec-06 8:50
Mark Salsbery15-Dec-06 8:50 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs18-Dec-06 6:01
lctrncs18-Dec-06 6:01 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Mark Salsbery18-Dec-06 7:39
Mark Salsbery18-Dec-06 7:39 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs18-Dec-06 11:51
lctrncs18-Dec-06 11:51 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Mark Salsbery15-Dec-06 8:59
Mark Salsbery15-Dec-06 8:59 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Mark Salsbery14-Dec-06 16:18
Mark Salsbery14-Dec-06 16:18 
AnswerRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Stephen Hewitt12-Dec-06 12:03
Stephen Hewitt12-Dec-06 12:03 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs13-Dec-06 6:09
lctrncs13-Dec-06 6:09 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs13-Dec-06 7:45
lctrncs13-Dec-06 7:45 

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.