Click here to Skip to main content
15,908,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Registry - Hiding important values Pin
Navin19-Jul-02 10:03
Navin19-Jul-02 10:03 
GeneralRe: Registry - Hiding important values Pin
Scott H. Settlemier19-Jul-02 9:43
Scott H. Settlemier19-Jul-02 9:43 
GeneralRe: Registry - Hiding important values Pin
Navin19-Jul-02 10:26
Navin19-Jul-02 10:26 
GeneralRe: Registry - Hiding important values Pin
Martin Ziacek19-Jul-02 10:29
Martin Ziacek19-Jul-02 10:29 
GeneralRe: Registry - Hiding important values Pin
Daniel Lohmann19-Jul-02 10:58
Daniel Lohmann19-Jul-02 10:58 
GeneralClosing dialog correctly Pin
jimNLX19-Jul-02 7:59
jimNLX19-Jul-02 7:59 
GeneralRe: Closing dialog correctly Pin
dazinith19-Jul-02 8:07
dazinith19-Jul-02 8:07 
GeneralRe: Closing dialog correctly Pin
Bubba214619-Jul-02 8:22
Bubba214619-Jul-02 8:22 
I don't this approach will do any good. The reason is the dialog is created on the stack, which you stated correctly. However, since it's created on the stack it will also be destroyed when the function exits. So you'll never see the dialog.

Do a search for a lesson on multiple dialogs, but it amounts to catching the "close" messages and calling 'delete' on the right pointer. This will free the memory allocated (like you said).
GeneralRe: Closing dialog correctly Pin
Navin19-Jul-02 9:22
Navin19-Jul-02 9:22 
GeneralRe: Closing dialog correctly Pin
Tim Smith19-Jul-02 9:59
Tim Smith19-Jul-02 9:59 
GeneralRe: Closing dialog correctly Pin
jimNLX25-Jul-02 8:00
jimNLX25-Jul-02 8:00 
QuestionAdding a Menu? Pin
Rene De La Garza19-Jul-02 7:56
Rene De La Garza19-Jul-02 7:56 
Generaladding service features Pin
s_k19-Jul-02 7:49
s_k19-Jul-02 7:49 
GeneralRe: adding service features Pin
l a u r e n19-Jul-02 10:46
l a u r e n19-Jul-02 10:46 
GeneralWebCam and SoundBoard Detection Pin
Anonymous19-Jul-02 7:43
Anonymous19-Jul-02 7:43 
GeneralRe: WebCam and SoundBoard Detection Pin
Ernest Laurentin19-Jul-02 10:01
Ernest Laurentin19-Jul-02 10:01 
GeneralGetting IP from client socket Pin
s_k19-Jul-02 7:40
s_k19-Jul-02 7:40 
GeneralRe: Getting IP from client socket Pin
Bubba214619-Jul-02 8:03
Bubba214619-Jul-02 8:03 
GeneralATL Composite Control/keyboard events Pin
nemo19-Jul-02 6:52
nemo19-Jul-02 6:52 
Questionc# ? different from c or c++ ? Pin
includeh1019-Jul-02 6:35
includeh1019-Jul-02 6:35 
AnswerRe: c# ? different from c or c++ ? Pin
Chris Losinger19-Jul-02 6:40
professionalChris Losinger19-Jul-02 6:40 
GeneralRe: c# ? different from c or c++ ? Pin
includeh1019-Jul-02 7:49
includeh1019-Jul-02 7:49 
GeneralRe: c# ? different from c or c++ ? Pin
Navin19-Jul-02 7:52
Navin19-Jul-02 7:52 
QuestionCListView is evil? Pin
Chris Losinger19-Jul-02 6:05
professionalChris Losinger19-Jul-02 6:05 
AnswerRe: CListView is evil? Pin
Rage19-Jul-02 6:20
professionalRage19-Jul-02 6:20 

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.