Click here to Skip to main content
15,929,218 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHandling WM_INITMENUPOPUP Pin
rrrado4-Sep-06 23:48
rrrado4-Sep-06 23:48 
AnswerRe: Handling WM_INITMENUPOPUP Pin
prasad_som5-Sep-06 1:00
prasad_som5-Sep-06 1:00 
GeneralRe: Handling WM_INITMENUPOPUP Pin
rrrado5-Sep-06 1:23
rrrado5-Sep-06 1:23 
GeneralRe: Handling WM_INITMENUPOPUP Pin
rrrado5-Sep-06 1:31
rrrado5-Sep-06 1:31 
GeneralRe: Handling WM_INITMENUPOPUP Pin
Frank K5-Sep-06 1:34
Frank K5-Sep-06 1:34 
QuestionRe: Handling WM_INITMENUPOPUP Pin
prasad_som5-Sep-06 1:38
prasad_som5-Sep-06 1:38 
AnswerRe: Handling WM_INITMENUPOPUP Pin
rrrado5-Sep-06 2:15
rrrado5-Sep-06 2:15 
GeneralRe: Handling WM_INITMENUPOPUP Pin
prasad_som5-Sep-06 2:40
prasad_som5-Sep-06 2:40 
QuestionUnderlined Text Pin
Anu_Bala4-Sep-06 23:41
Anu_Bala4-Sep-06 23:41 
AnswerRe: Underlined Text Pin
uday kiran janaswamy4-Sep-06 23:51
uday kiran janaswamy4-Sep-06 23:51 
AnswerRe: Underlined Text Pin
Cedric Moonen5-Sep-06 0:14
Cedric Moonen5-Sep-06 0:14 
AnswerRe: Underlined Text Pin
Hamid_RT6-Sep-06 8:04
Hamid_RT6-Sep-06 8:04 
QuestionMessageBoxW and converting to LPCWSTR Pin
sawerr4-Sep-06 22:58
sawerr4-Sep-06 22:58 
AnswerRe: MessageBoxW and converting to LPCWSTR Pin
uday kiran janaswamy4-Sep-06 23:03
uday kiran janaswamy4-Sep-06 23:03 
AnswerRe: MessageBoxW and converting to LPCWSTR Pin
fefe.wyx4-Sep-06 23:10
fefe.wyx4-Sep-06 23:10 
GeneralRe: MessageBoxW and converting to LPCWSTR Pin
sawerr4-Sep-06 23:12
sawerr4-Sep-06 23:12 
GeneralRe: MessageBoxW and converting to LPCWSTR Pin
sawerr4-Sep-06 23:21
sawerr4-Sep-06 23:21 
GeneralRe: MessageBoxW and converting to LPCWSTR Pin
toxcct4-Sep-06 23:25
toxcct4-Sep-06 23:25 
GeneralRe: MessageBoxW and converting to LPCWSTR Pin
sawerr4-Sep-06 23:27
sawerr4-Sep-06 23:27 
GeneralRe: MessageBoxW and converting to LPCWSTR Pin
prasad_som4-Sep-06 23:27
prasad_som4-Sep-06 23:27 
GeneralRe: MessageBoxW and converting to LPCWSTR Pin
Milton Karimbekallil4-Sep-06 23:35
Milton Karimbekallil4-Sep-06 23:35 
QuestionUse of Select Option in Socket. Pin
uday kiran janaswamy4-Sep-06 22:47
uday kiran janaswamy4-Sep-06 22:47 
AnswerRe: Use of Select Option in Socket. Pin
_AnsHUMAN_ 4-Sep-06 23:16
_AnsHUMAN_ 4-Sep-06 23:16 
QuestionDifference in Heap and Stack. Pin
uday kiran janaswamy4-Sep-06 22:41
uday kiran janaswamy4-Sep-06 22:41 
AnswerRe: Difference in Heap and Stack. Pin
_AnsHUMAN_ 4-Sep-06 23:03
_AnsHUMAN_ 4-Sep-06 23:03 
uday kiran janaswamy wrote:
difference of heap and stack in memory related area

It's a difference of access memory (the hardware of the memory). The stack is much faster than the heap, but smaller and more expensive. primitives are place in the stack, but objects on the heap.
uday kiran janaswamy wrote:

CDialog d; ---> First
d.DoModel();

Object is created on the stack. No chances for memory leak but the amount of memory on the stack is small and the store can get exhausted.
uday kiran janaswamy wrote:
CDialog *d = new CDialog; ---->Second
d->DoModel();

Object is created on heap.
While allocating memory on the heap you are responsible for deallocating memory. Each byte of memory that's being assigned/used should be returned back to the heap after it's task is done or else there is a problem that is known as Memory Leak.

Somethings seem HARD to do, until we know how to do them.
Wink | ;-) _AnShUmAn_

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.