Click here to Skip to main content
16,007,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSockets and proxy Pin
new memeber3-Nov-02 6:53
sussnew memeber3-Nov-02 6:53 
GeneralRe: Sockets and proxy Pin
Stephane Rodriguez.3-Nov-02 7:22
Stephane Rodriguez.3-Nov-02 7:22 
Question??? documentation or SDK for MS-Word 97 and 2000 DOC-file format ??? Pin
maksym_from_odessa3-Nov-02 6:01
maksym_from_odessa3-Nov-02 6:01 
AnswerRe: ??? documentation or SDK for MS-Word 97 and 2000 DOC-file format ??? Pin
Stephane Rodriguez.3-Nov-02 6:23
Stephane Rodriguez.3-Nov-02 6:23 
Generalbeginner COM question ... Pin
Maximilien3-Nov-02 5:55
Maximilien3-Nov-02 5:55 
GeneralRe: beginner COM question ... Pin
Stephane Rodriguez.3-Nov-02 7:24
Stephane Rodriguez.3-Nov-02 7:24 
GeneralRe: beginner COM question ... Pin
Anders Molin3-Nov-02 8:00
professionalAnders Molin3-Nov-02 8:00 
GeneralWindows Memory Allocation :: C++ Pin
valikac3-Nov-02 5:38
valikac3-Nov-02 5:38 
Hi.

C++ offers the new operator to allocate a section of memory via heap.

C offers the general malloc set of functions to allocate a section of memory via heap.

Windows offers a series of functions. I would like to know what is the best memory allocation tool to use under windows. Again, I am a C++ programmer.

I believe Windows has these memory related functions.

GlobalAlloc()
GlobaFree()
HeapAlloc()
HeapFree()
LocalAlloc()
LocalFree ()

I would like to like under a C++ Windows program, what are the most appropriate memory allocation tool to use? Currently, I use C++ new operator to develop Windows winsock programs. However, I see programmers use GlobalAlloc almost all the time for Windows and Windows network programs. What is the advantage, if any, of GlobalAlloc that C++ new lacks, if any?

Thanks,
Kuphryn
GeneralRe: Windows Memory Allocation :: C++ Pin
ian mariano3-Nov-02 7:18
ian mariano3-Nov-02 7:18 
GeneralRe: Windows Memory Allocation :: C++ Pin
valikac3-Nov-02 7:26
valikac3-Nov-02 7:26 
GeneralRe: Windows Memory Allocation :: C++ Pin
User 98853-Nov-02 7:29
User 98853-Nov-02 7:29 
Generalshellexecuteex Pin
pnpfriend3-Nov-02 4:34
pnpfriend3-Nov-02 4:34 
GeneralRe: shellexecuteex Pin
Michael Dunn3-Nov-02 4:40
sitebuilderMichael Dunn3-Nov-02 4:40 
GeneralRe: shellexecuteex Pin
pnpfriend3-Nov-02 5:36
pnpfriend3-Nov-02 5:36 
GeneralCRichEditCtrl question.. Pin
Anonymous3-Nov-02 4:10
Anonymous3-Nov-02 4:10 
GeneralRe: CRichEditCtrl question.. Pin
Stephane Rodriguez.3-Nov-02 7:25
Stephane Rodriguez.3-Nov-02 7:25 
GeneralHELP! Can not control Default Printer! Pin
Anonymous3-Nov-02 4:04
Anonymous3-Nov-02 4:04 
GeneralWindows 98 Disdain Pin
Swinefeaster3-Nov-02 0:00
Swinefeaster3-Nov-02 0:00 
GeneralRe: Windows 98 Disdain Pin
Stephane Rodriguez.3-Nov-02 7:28
Stephane Rodriguez.3-Nov-02 7:28 
GeneralRe: Windows 98 Disdain Pin
Swinefeaster3-Nov-02 11:14
Swinefeaster3-Nov-02 11:14 
GeneralRe: Windows 98 Disdain Pin
Stephane Rodriguez.3-Nov-02 18:44
Stephane Rodriguez.3-Nov-02 18:44 
GeneralEnumerating processes under Win9x Pin
Kuniva2-Nov-02 23:11
Kuniva2-Nov-02 23:11 
GeneralRe: Enumerating processes under Win9x Pin
Stephane Rodriguez.3-Nov-02 7:16
Stephane Rodriguez.3-Nov-02 7:16 
GeneralRe: Enumerating processes under Win9x Pin
Stephane Rodriguez.3-Nov-02 7:21
Stephane Rodriguez.3-Nov-02 7:21 
GeneralOnPaint question Pin
Mel Feik2-Nov-02 21:38
Mel Feik2-Nov-02 21:38 

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.