Click here to Skip to main content
15,912,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralStrange memory allocation Pin
boon kian27-Aug-02 18:32
boon kian27-Aug-02 18:32 
GeneralRe: Strange memory allocation Pin
Chris Losinger27-Aug-02 18:34
professionalChris Losinger27-Aug-02 18:34 
GeneralRe: Strange memory allocation Pin
boon kian28-Aug-02 7:09
boon kian28-Aug-02 7:09 
GeneralRe: Strange memory allocation Pin
Anonymous27-Aug-02 18:45
Anonymous27-Aug-02 18:45 
GeneralRe: Strange memory allocation Pin
Todd Smith27-Aug-02 20:17
Todd Smith27-Aug-02 20:17 
GeneralRe: Strange memory allocation Pin
markkuk27-Aug-02 21:22
markkuk27-Aug-02 21:22 
GeneralRe: Strange memory allocation Pin
boon kian28-Aug-02 18:52
boon kian28-Aug-02 18:52 
GeneralMonitor multiple CPUs without Performance Counters Pin
Anonymous27-Aug-02 17:22
Anonymous27-Aug-02 17:22 
Questionhow to debug if execution doesnt reach breakpoint? Pin
nsnsns27-Aug-02 16:35
nsnsns27-Aug-02 16:35 
AnswerRe: how to debug if execution doesnt reach breakpoint? Pin
Philip Patrick27-Aug-02 21:28
professionalPhilip Patrick27-Aug-02 21:28 
AnswerRe: how to debug if execution doesnt reach breakpoint? Pin
Andreas Saurwein28-Aug-02 0:23
Andreas Saurwein28-Aug-02 0:23 
GeneralHelp me! Pin
lihao27-Aug-02 16:04
lihao27-Aug-02 16:04 
GeneralRe: Help me! Pin
Christian Graus27-Aug-02 18:37
protectorChristian Graus27-Aug-02 18:37 
GeneralScroll bar thumbs size Pin
alex.barylski27-Aug-02 15:04
alex.barylski27-Aug-02 15:04 
GeneralRe: Scroll bar thumbs size Pin
Ernest Laurentin27-Aug-02 18:15
Ernest Laurentin27-Aug-02 18:15 
GeneralRe: Scroll bar thumbs size Pin
alex.barylski27-Aug-02 21:57
alex.barylski27-Aug-02 21:57 
GeneralRe: Scroll bar thumbs size Pin
alex.barylski28-Aug-02 0:30
alex.barylski28-Aug-02 0:30 
GeneralRe: Scroll bar thumbs size Pin
Andreas Saurwein28-Aug-02 1:17
Andreas Saurwein28-Aug-02 1:17 
GeneralUpdating from Dialog to Document Pin
RalfPeter27-Aug-02 13:44
RalfPeter27-Aug-02 13:44 
GeneralRe: Updating from Dialog to Document Pin
Chris Losinger27-Aug-02 14:03
professionalChris Losinger27-Aug-02 14:03 
GeneralRe: The other way ... Pin
Masaaki Onishi27-Aug-02 16:51
Masaaki Onishi27-Aug-02 16:51 
Hello, the codegurus around the world.;)

Basically, we don't need to create CMyDialog in MyDoc class.
(Or, maybe we call some member function of CMyDoc with createing MyDialog and
call this function in the menu associated in CMyView).

Anyway, there are at least two ways to access the member value of CMyDoc.

1) Pass the parent's CWnd through the dialog class constructor.
(Or use GetParent() function of CWnd).
So, what is the parent? CMyDoc(?), CMyview or CMyFrame. No problems.
(Oops, CMyDoc will not be derived from CWnd.)

2) Use the global functions like AfxGetApp() or AfxGetMainWnd()
to get CMyFrame's CWnd and use GetDocument() functions.

So, we can enjoy MFC since we have many ways to do anything.Cool | :cool:

Please, don't send me your email about your questions directly.
Have a nice day!
Sonork - 100.10571:vcdeveloper Wink | ;)

-Masaaki Onishi-


GeneralRe: Updating from Dialog to Document Pin
John Oliver27-Aug-02 22:51
John Oliver27-Aug-02 22:51 
GeneralRe: Updating from Dialog to Document Pin
John Oliver27-Aug-02 23:33
John Oliver27-Aug-02 23:33 
GeneralUpdate controls in timer, doesn't update Pin
jimNLX27-Aug-02 11:57
jimNLX27-Aug-02 11:57 
GeneralRe: Update controls in timer, doesn't update Pin
Christian Graus27-Aug-02 12:02
protectorChristian Graus27-Aug-02 12:02 

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.