Click here to Skip to main content
16,006,440 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can ShellExecute open a file in memory or a memory map file? Pin
Stuart Dootson15-Mar-09 1:40
professionalStuart Dootson15-Mar-09 1:40 
GeneralRe: Can ShellExecute open a file in memory or a memory map file? Pin
SearchDream15-Mar-09 2:06
SearchDream15-Mar-09 2:06 
AnswerRe: Can ShellExecute open a file in memory or a memory map file? Pin
Nemanja Trifunovic16-Mar-09 9:17
Nemanja Trifunovic16-Mar-09 9:17 
QuestionHow to get the current IE webpage's source code? Pin
cs6008914-Mar-09 23:36
cs6008914-Mar-09 23:36 
AnswerRe: How to get the current IE webpage's source code? Pin
«_Superman_»15-Mar-09 3:05
professional«_Superman_»15-Mar-09 3:05 
RantRe: How to get the current IE webpage's source code? Pin
Iain Clarke, Warrior Programmer15-Mar-09 6:34
Iain Clarke, Warrior Programmer15-Mar-09 6:34 
RantDoc /View Debugging. Pin
grassrootkit14-Mar-09 20:38
grassrootkit14-Mar-09 20:38 
GeneralRe: Doc /View Debugging. Pin
Stuart Dootson14-Mar-09 23:40
professionalStuart Dootson14-Mar-09 23:40 
grassrootkit wrote:
Ok, first off, How do I debug a document application, for example an SDI, When I click on "Save" from the menu, where does the command land? More importantly, How do I see it? Where should I keep the break point. just blows my mind.


Look at the message maps - they tell you where the messages go. Also, pop a breakpoint on your Serialize method and look at the call stack - that shows you where the message has been routed.

grassrootkit wrote:
Second, When you click on "save" it goes through Serialize() function [God only knows how it gets called], and when you check for "IsStoring()" that says true and hence..save. BUT, When I open a document, It doesn't go through the Serialize method. WTH?? It's been clearly said in the book. If "IsStoring()" is false, it means you are opening a document


The reason an open command might not land on your Serialize method is because you're re-opening the currently open document - that's certainly what I've found. MFC detects that case and performs no action (unless, I suspect, you've altered the document since you last saved it).

grassrootkit wrote:
And on what basis, do these handlers exist in the file where CMyApp theApp object exists. Where is the handler for "OnFileSave"? Why is it not transparent? Why do they need to show only New & Open option here? Do you agree with me, they are least intuitive when it comes to Doc/View?


The handlers live with your app because you may have multiple documents and document types - the app attempts to determine what type of document you're opening before opening the document and asking it to load the file - even if you only have one document type and one document.

Yes, it can be obscure. The best way to approach MFC is to just go with the MFC flow and accept that it does loads of weird sh*t. Or try and work through a copy of MFC Internals[^]. And then accept that MFC's going to do what MFC does Smile | :)

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Doc /View Debugging. Pin
grassrootkit15-Mar-09 0:02
grassrootkit15-Mar-09 0:02 
QuestionRe: Doc /View Debugging. Pin
grassrootkit15-Mar-09 0:36
grassrootkit15-Mar-09 0:36 
AnswerRe: Doc /View Debugging. Pin
Stuart Dootson15-Mar-09 0:45
professionalStuart Dootson15-Mar-09 0:45 
GeneralRe: Doc /View Debugging. Pin
grassrootkit15-Mar-09 1:13
grassrootkit15-Mar-09 1:13 
GeneralRe: Doc /View Debugging. Pin
Stuart Dootson15-Mar-09 1:39
professionalStuart Dootson15-Mar-09 1:39 
QuestionActiveX call OLEDraw to draw Flash(swf) Pin
l_arrow14-Mar-09 18:28
l_arrow14-Mar-09 18:28 
QuestionSerial port read latency (SERIOUS - NEED HELP FAST!) Pin
PeniWize14-Mar-09 14:24
PeniWize14-Mar-09 14:24 
AnswerRe: Serial port read latency (SERIOUS - NEED HELP FAST!) Pin
Luc Pattyn14-Mar-09 15:21
sitebuilderLuc Pattyn14-Mar-09 15:21 
GeneralRe: Serial port read latency (SERIOUS - NEED HELP FAST!) Pin
PeniWize14-Mar-09 20:48
PeniWize14-Mar-09 20:48 
GeneralRe: Serial port read latency (SERIOUS - NEED HELP FAST!) Pin
Luc Pattyn15-Mar-09 4:49
sitebuilderLuc Pattyn15-Mar-09 4:49 
GeneralRe: Serial port read latency (SERIOUS - NEED HELP FAST!) Pin
PeniWize15-Mar-09 10:13
PeniWize15-Mar-09 10:13 
GeneralRe: Serial port read latency (SERIOUS - NEED HELP FAST!) Pin
CPallini14-Mar-09 23:59
mveCPallini14-Mar-09 23:59 
AnswerRe: Serial port read latency (SERIOUS - NEED HELP FAST!) Pin
Stuart Dootson14-Mar-09 19:24
professionalStuart Dootson14-Mar-09 19:24 
GeneralRe: Serial port read latency (SERIOUS - NEED HELP FAST!) Pin
PeniWize14-Mar-09 20:55
PeniWize14-Mar-09 20:55 
GeneralRe: Serial port read latency (SERIOUS - NEED HELP FAST!) Pin
Stuart Dootson14-Mar-09 23:19
professionalStuart Dootson14-Mar-09 23:19 
GeneralRe: Serial port read latency (SERIOUS - NEED HELP FAST!) Pin
grassrootkit14-Mar-09 23:29
grassrootkit14-Mar-09 23:29 
GeneralRe: Serial port read latency (SERIOUS - NEED HELP FAST!) Pin
Stuart Dootson14-Mar-09 23:44
professionalStuart Dootson14-Mar-09 23:44 

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.