Click here to Skip to main content
15,886,799 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Cut and Drag and Drop File/Folder Path [LONG POST] Pin
MsmVc12-May-09 22:22
MsmVc12-May-09 22:22 
QuestionRe: Cut and Drag and Drop File/Folder Path Pin
David Crow13-May-09 3:27
David Crow13-May-09 3:27 
QuestionWin32 web service client over SSL Pin
eight12-May-09 18:00
eight12-May-09 18:00 
AnswerRe: Win32 web service client over SSL Pin
eight12-May-09 22:33
eight12-May-09 22:33 
QuestionOne or many libraries? Pin
Mauro Leggieri12-May-09 14:54
Mauro Leggieri12-May-09 14:54 
AnswerRe: One or many libraries? Pin
«_Superman_»12-May-09 16:31
professional«_Superman_»12-May-09 16:31 
GeneralRe: One or many libraries? Pin
Mauro Leggieri13-May-09 2:37
Mauro Leggieri13-May-09 2:37 
QuestionCreating and Deleting a New Window Pin
BobInNJ12-May-09 12:28
BobInNJ12-May-09 12:28 
I am currently writing an application using C++ and MFC. For displaying the results of a certain operation, a new window is created. The window is represented by a class I created called COutputWindow. The base class of COutputWindow is CFrameWnd. I create the output window by doing the following operations:
1) Creating a new instance of COutputWindow by calling new.
2) Calling the member functions of COutputWindow: ShowWindow and UpdateWindow. Actually these
member functions are defined in the base class.
3) A define COutputWindow::OnPaint to display the results.

In my main window, I save a pointer to the output window. In addition, when the output window (window of type COutputWindow) is closed, I want the objected created by new in step 1 to be deleted. However, I cannot do this until the window is completely closed. Therefore, I believe that the pointer cannot be deleted on COutputWindow::OnClose. Therefore, where should I delete the pointer that represnets the object to the closed window.

Thanks

Bob
AnswerRe: Creating and Deleting a New Window Pin
Mauro Leggieri12-May-09 14:57
Mauro Leggieri12-May-09 14:57 
AnswerRe: Creating and Deleting a New Window Pin
«_Superman_»12-May-09 16:35
professional«_Superman_»12-May-09 16:35 
QuestionMemory Access Violation Pin
Ben Pedersen12-May-09 10:15
Ben Pedersen12-May-09 10:15 
AnswerRe: Memory Access Violation Pin
Nemanja Trifunovic12-May-09 10:53
Nemanja Trifunovic12-May-09 10:53 
GeneralRe: Memory Access Violation Pin
Ben Pedersen12-May-09 11:18
Ben Pedersen12-May-09 11:18 
QuestionPlugin - Dialog Handle Control Pin
Tux`12-May-09 8:28
Tux`12-May-09 8:28 
AnswerRe: Plugin - Dialog Handle Control Pin
Stuart Dootson12-May-09 9:54
professionalStuart Dootson12-May-09 9:54 
GeneralRe: Plugin - Dialog Handle Control Pin
Tux`12-May-09 10:08
Tux`12-May-09 10:08 
QuestionUnable to install platform SDK on Vista Operating System. Pin
pandit8412-May-09 7:16
pandit8412-May-09 7:16 
QuestionRe: Unable to install platform SDK on Vista Operating System. Pin
Dustin Henry12-May-09 7:36
Dustin Henry12-May-09 7:36 
AnswerRe: Unable to install platform SDK on Vista Operating System. Pin
pandit8412-May-09 8:05
pandit8412-May-09 8:05 
QuestionUsing ADO Open( ) fucntion. Pin
vital_parsley200012-May-09 7:10
vital_parsley200012-May-09 7:10 
AnswerRe: Using ADO Open( ) fucntion. Pin
CPallini12-May-09 7:55
mveCPallini12-May-09 7:55 
QuestionCAsyncSocket ? Can I use A currently active Cdialog Pin
ForNow12-May-09 5:41
ForNow12-May-09 5:41 
AnswerRe: CAsyncSocket ? Can I use A currently active Cdialog Pin
David Crow12-May-09 6:52
David Crow12-May-09 6:52 
GeneralRe: CAsyncSocket ? Can I use A currently active Cdialog Pin
ForNow12-May-09 7:50
ForNow12-May-09 7:50 
GeneralRe: CAsyncSocket ? Can I use A currently active Cdialog Pin
David Crow12-May-09 7:58
David Crow12-May-09 7:58 

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.