Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Return Hooked Values Pin
prasad_som24-Aug-06 0:11
prasad_som24-Aug-06 0:11 
QuestionRe: Return Hooked Values Pin
David Crow24-Aug-06 2:47
David Crow24-Aug-06 2:47 
AnswerRe: Return Hooked Values Pin
stevelam24-Aug-06 3:56
stevelam24-Aug-06 3:56 
QuestionWhat is the best way to close a application Pin
NorGUI23-Aug-06 23:15
NorGUI23-Aug-06 23:15 
AnswerRe: What is the best way to close a application Pin
uday kiran janaswamy23-Aug-06 23:18
uday kiran janaswamy23-Aug-06 23:18 
AnswerRe: What is the best way to close a application Pin
Michael Dunn24-Aug-06 0:15
sitebuilderMichael Dunn24-Aug-06 0:15 
QuestionControl wrapper Pin
HakunaMatada23-Aug-06 23:14
HakunaMatada23-Aug-06 23:14 
AnswerRe: Control wrapper Pin
Cedric Moonen23-Aug-06 23:33
Cedric Moonen23-Aug-06 23:33 
Hakuna-Matada wrote:
From what I reason, CStatic* m_pStatic = new CStatic() creates an object of CStatic in memory and m_pStatic->Create() in turn creates another object for the Window. So I have two objects in memory, one of my class and one belonging to the Window. Am I right?


Yes more or less. In fact, the call to the WINAPI Create function doesn't really 'create' an object in memory like you would do with new. But still, you have to call DestroyWindow afterwards. And then of course delete the object you allocated with new.


Hakuna-Matada wrote:
Then now come when I try to delete m_pStatic after a call to Destroywindow, it throws an exception.


You probably did something wrong in your code. Show the destructot of your class. And explain also exactly what you did. It is impossible to say without having more information.




Cédric Moonen
Software developer

Charting control [Updated - v1.1]

GeneralRe: Control wrapper Pin
HakunaMatada24-Aug-06 0:44
HakunaMatada24-Aug-06 0:44 
GeneralRe: Control wrapper Pin
Cedric Moonen24-Aug-06 1:22
Cedric Moonen24-Aug-06 1:22 
QuestionSample CMap Application Pin
velayudhan_raj23-Aug-06 22:43
velayudhan_raj23-Aug-06 22:43 
AnswerRe: Sample CMap Application Pin
Christian Graus23-Aug-06 22:47
protectorChristian Graus23-Aug-06 22:47 
AnswerRe: Sample CMap Application Pin
uday kiran janaswamy23-Aug-06 23:48
uday kiran janaswamy23-Aug-06 23:48 
AnswerRe: Sample CMap Application Pin
David Crow24-Aug-06 2:57
David Crow24-Aug-06 2:57 
QuestionShowing Statusbar in Windows Explorer Pin
Jagadeesh VN23-Aug-06 22:29
Jagadeesh VN23-Aug-06 22:29 
GeneralRe: Showing Statusbar in Windows Explorer Pin
prasad_som24-Aug-06 0:17
prasad_som24-Aug-06 0:17 
Questionnetworking [modified] Pin
ramanand_bulusu23-Aug-06 22:11
ramanand_bulusu23-Aug-06 22:11 
AnswerRe: networking Pin
toxcct23-Aug-06 22:24
toxcct23-Aug-06 22:24 
QuestionRe: networking [modified] Pin
ramanand_bulusu23-Aug-06 22:36
ramanand_bulusu23-Aug-06 22:36 
GeneralRe: networking Pin
toxcct23-Aug-06 22:38
toxcct23-Aug-06 22:38 
AnswerRe: networking Pin
_AnsHUMAN_ 23-Aug-06 22:26
_AnsHUMAN_ 23-Aug-06 22:26 
AnswerRe: networking Pin
Hamid_RT24-Aug-06 0:09
Hamid_RT24-Aug-06 0:09 
QuestionAbout Combobox Pin
vijay_aroli23-Aug-06 22:09
vijay_aroli23-Aug-06 22:09 
AnswerRe: About Combobox Pin
_AnsHUMAN_ 23-Aug-06 22:22
_AnsHUMAN_ 23-Aug-06 22:22 
AnswerRe: About Combobox Pin
yummi23-Aug-06 22:26
yummi23-Aug-06 22:26 

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.