Click here to Skip to main content
15,894,907 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CMainFrame's members Pin
hcmuns29-May-05 23:48
susshcmuns29-May-05 23:48 
GeneralRe: CMainFrame's members Pin
hcmuns29-May-05 23:18
susshcmuns29-May-05 23:18 
Questionhow to crop an image in an application based on dialog? Pin
qqworm29-May-05 20:38
qqworm29-May-05 20:38 
AnswerRe: how to crop an image in an application based on dialog? Pin
toxcct29-May-05 23:59
toxcct29-May-05 23:59 
GeneralRe: how to crop an image in an application based on dialog? Pin
qqworm30-May-05 1:53
qqworm30-May-05 1:53 
General:confused: Pin
namaskaaram29-May-05 20:27
namaskaaram29-May-05 20:27 
GeneralRe: :confused: Pin
patnsnaudy29-May-05 20:49
patnsnaudy29-May-05 20:49 
GeneralRe: :confused: Pin
S. Senthil Kumar29-May-05 20:53
S. Senthil Kumar29-May-05 20:53 
I can't understand your first question. When you do new XYZ();, the compiler emits code to allocate enough memory for XYZ(sizeof(XYZ)) and to call XYZ's constructor. When you run the program, that code executes and you get back a pointer to a dynamically allocated instance of XYZ.

delete this is valid, but is not recommended (except for special situations, like COM reference counting implementation..). Just make sure that you don't reference any member variables after you call delete this;

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: :confused: Pin
namaskaaram29-May-05 21:45
namaskaaram29-May-05 21:45 
QuestionHow to record voice using DirectSound..? Pin
mpallavi29-May-05 20:24
mpallavi29-May-05 20:24 
AnswerRe: How to record voice using DirectSound..? Pin
Flit31-May-05 2:55
Flit31-May-05 2:55 
GeneralMouse Move for Main Frame Pin
laiju29-May-05 20:02
laiju29-May-05 20:02 
GeneralRe: Mouse Move for Main Frame Pin
Blake Miller31-May-05 6:19
Blake Miller31-May-05 6:19 
GeneralCall Windows Dial up thr C# or VC++ Pin
ksanju100029-May-05 19:11
ksanju100029-May-05 19:11 
GeneralRe: Call Windows Dial up thr C# or VC++ Pin
ThatsAlok29-May-05 19:28
ThatsAlok29-May-05 19:28 
QuestionProtect a folder? Pin
Priyank Bolia29-May-05 18:43
Priyank Bolia29-May-05 18:43 
AnswerRe: Protect a folder? Pin
Ryan Binns29-May-05 18:47
Ryan Binns29-May-05 18:47 
GeneralRe: Protect a folder? Pin
Priyank Bolia29-May-05 19:09
Priyank Bolia29-May-05 19:09 
GeneralRe: Protect a folder? Pin
toxcct29-May-05 20:13
toxcct29-May-05 20:13 
GeneralRe: Protect a folder? Pin
Priyank Bolia29-May-05 22:23
Priyank Bolia29-May-05 22:23 
GeneralRe: Protect a folder? Pin
toxcct29-May-05 22:29
toxcct29-May-05 22:29 
GeneralOnActivateView Not Invoked Pin
laiju29-May-05 18:20
laiju29-May-05 18:20 
Generalimage and wav Pin
Anonymous29-May-05 17:29
Anonymous29-May-05 17:29 
GeneralRe: image and wav Pin
Christian Graus29-May-05 17:36
protectorChristian Graus29-May-05 17:36 
GeneralModifying date Pin
Weiye Chen29-May-05 15:03
Weiye Chen29-May-05 15:03 

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.