Click here to Skip to main content
15,915,851 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Modeless API dialog hangs after creation Pin
ThatsAlok19-Jun-05 18:33
ThatsAlok19-Jun-05 18:33 
GeneralRe: Modeless API dialog hangs after creation Pin
KnaveR77721-Jun-05 17:18
KnaveR77721-Jun-05 17:18 
GeneralC help needed Pin
Tom Archer19-Jun-05 15:54
Tom Archer19-Jun-05 15:54 
GeneralRe: C help needed Pin
Neville Franks19-Jun-05 19:19
Neville Franks19-Jun-05 19:19 
GeneralRe: C help needed Pin
Christian Graus19-Jun-05 20:03
protectorChristian Graus19-Jun-05 20:03 
GeneralRe: C help needed Pin
Christian Graus19-Jun-05 20:10
protectorChristian Graus19-Jun-05 20:10 
GeneralRe: C help needed Pin
Jack Squirrel Jr.20-Jun-05 0:12
sussJack Squirrel Jr.20-Jun-05 0:12 
GeneralRe: C help needed Pin
David Crow20-Jun-05 3:12
David Crow20-Jun-05 3:12 
Jack Squirrel Jr. wrote:
How about realloc or is that not available in C?

This is the epitome of a bad function. realloc() has been dubbed the one-function memory manager. If the new size of the block is smaller than the old size, realloc() releases the unwanted memory at the tail end of the block. If the new size is larger than the old size, the expanded block may be allocated at a new address and the contents of the original block copied to the new location. A pointer to the expanded block is returned, and the extended part of the block is left uninitialized. If you attempt to expand a block and realloc() cannot satisfy the request, NULL is returned. If pv is NULL, then realloc() behaves as though you called malloc() and returns a pointer to a newly allocated block, or NULL. If the new size is 0 and pv is not NULL, then realloc() behaves as though you called free(pv) and NULL is returned. If pv is NULL and size is 0, the result is undefined. In summary, realloc() is a prime example of implementation overkill!


"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown


GeneralRe: C help needed Pin
Bob Stanneveld19-Jun-05 20:40
Bob Stanneveld19-Jun-05 20:40 
GeneralRe: C help needed Pin
Tom Archer20-Jun-05 1:27
Tom Archer20-Jun-05 1:27 
GeneralRe: C help needed Pin
John R. Shaw20-Jun-05 6:08
John R. Shaw20-Jun-05 6:08 
GeneralRe: C help needed Pin
Tom Archer20-Jun-05 21:24
Tom Archer20-Jun-05 21:24 
GeneralRe: C help needed Pin
Bob Stanneveld20-Jun-05 20:41
Bob Stanneveld20-Jun-05 20:41 
Generalwindows hicon problem Pin
c. s.19-Jun-05 14:33
c. s.19-Jun-05 14:33 
GeneralRe: windows hicon problem Pin
Rage19-Jun-05 22:02
professionalRage19-Jun-05 22:02 
GeneralRe: windows hicon problem Pin
c. s.21-Jun-05 18:08
c. s.21-Jun-05 18:08 
Questionplease can any one help me ???? Pin
kosamoza19-Jun-05 13:33
kosamoza19-Jun-05 13:33 
AnswerRe: please can any one help me ???? Pin
Christian Graus19-Jun-05 20:11
protectorChristian Graus19-Jun-05 20:11 
GeneralRe: please can any one help me ???? Pin
toxcct19-Jun-05 20:44
toxcct19-Jun-05 20:44 
AnswerRe: please can any one help me ???? Pin
Bob Stanneveld19-Jun-05 20:46
Bob Stanneveld19-Jun-05 20:46 
GeneralRe: please can any one help me ???? Pin
kosamoza20-Jun-05 6:57
kosamoza20-Jun-05 6:57 
GeneralRe: please can any one help me ???? Pin
Bob Stanneveld20-Jun-05 20:36
Bob Stanneveld20-Jun-05 20:36 
GeneralRe: please can any one help me ???? Pin
Anonymous21-Jun-05 4:42
Anonymous21-Jun-05 4:42 
GeneralRe: please can any one help me ???? Pin
Bob Stanneveld21-Jun-05 20:34
Bob Stanneveld21-Jun-05 20:34 
AnswerRe: please can any one help me ???? Pin
FlyingTinman20-Jun-05 10:25
FlyingTinman20-Jun-05 10:25 

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.