Click here to Skip to main content
15,920,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: new operator Pin
namaskaaram26-Aug-05 4:01
namaskaaram26-Aug-05 4:01 
AnswerRe: new operator Pin
Emilio Garavaglia26-Aug-05 4:12
Emilio Garavaglia26-Aug-05 4:12 
GeneralRe: new operator Pin
toxcct26-Aug-05 4:20
toxcct26-Aug-05 4:20 
GeneralRe: new operator Pin
Tim Smith26-Aug-05 6:06
Tim Smith26-Aug-05 6:06 
GeneralRe: new operator Pin
John R. Shaw27-Aug-05 12:02
John R. Shaw27-Aug-05 12:02 
GeneralRe: new operator Pin
Emilio Garavaglia28-Aug-05 20:48
Emilio Garavaglia28-Aug-05 20:48 
GeneralRe: new operator Pin
John R. Shaw28-Aug-05 22:35
John R. Shaw28-Aug-05 22:35 
AnswerRe: new operator Pin
David Crow26-Aug-05 4:15
David Crow26-Aug-05 4:15 
Under Win32, there is no difference between GlobalAlloc() and LocalAlloc(). They are only provided for compatibility to 16-bit Windows when there was a global and a local heap.

malloc() is a wrapper around HeapAlloc(), which in turn is a wrapper around VirtualAlloc(). I believe this was mentioned in Richter's book "Advanced Windows."

One thing that the new operator does that none of the others do is call an object's constructor and destructor.

See here for more.


"One must learn from the bite of the fire to leave it alone." - Native American Proverb


GeneralRe: new operator Pin
Emilio Garavaglia28-Aug-05 21:01
Emilio Garavaglia28-Aug-05 21:01 
QuestionDate receiver Pin
Ali Tavakol26-Aug-05 3:27
Ali Tavakol26-Aug-05 3:27 
AnswerRe: Date receiver Pin
David Crow26-Aug-05 3:30
David Crow26-Aug-05 3:30 
GeneralRe: Date receiver Pin
Ali Tavakol26-Aug-05 3:41
Ali Tavakol26-Aug-05 3:41 
GeneralRe: Date receiver Pin
David Crow26-Aug-05 3:55
David Crow26-Aug-05 3:55 
GeneralRe: Date receiver Pin
Maximilien26-Aug-05 4:13
Maximilien26-Aug-05 4:13 
Questioncaling conventions Pin
Member 222581226-Aug-05 1:29
Member 222581226-Aug-05 1:29 
AnswerRe: caling conventions Pin
Cedric Moonen26-Aug-05 1:55
Cedric Moonen26-Aug-05 1:55 
GeneralRe: caling conventions Pin
toxcct26-Aug-05 2:26
toxcct26-Aug-05 2:26 
GeneralRe: caling conventions Pin
Cedric Moonen26-Aug-05 2:36
Cedric Moonen26-Aug-05 2:36 
GeneralRe: caling conventions Pin
Member 222581226-Aug-05 3:00
Member 222581226-Aug-05 3:00 
GeneralRe: caling conventions Pin
MailtoGops26-Aug-05 3:19
MailtoGops26-Aug-05 3:19 
GeneralRe: caling conventions Pin
David Crow26-Aug-05 3:22
David Crow26-Aug-05 3:22 
QuestionHow to get HWND of my application window ? Pin
Amarelia26-Aug-05 1:08
Amarelia26-Aug-05 1:08 
AnswerRe: How to get HWND of my application window ? Pin
Jack Puppy26-Aug-05 1:41
Jack Puppy26-Aug-05 1:41 
AnswerRe: How to get HWND of my application window ? Pin
MailtoGops26-Aug-05 3:28
MailtoGops26-Aug-05 3:28 
QuestionCmdUpdateUI Pin
Joel Holdsworth26-Aug-05 1:05
Joel Holdsworth26-Aug-05 1:05 

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.