Click here to Skip to main content
15,919,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Process Status Pin
Scott H. Settlemier2-Jul-02 3:10
Scott H. Settlemier2-Jul-02 3:10 
GeneralRe: Process Status Pin
#realJSOP2-Jul-02 3:14
professional#realJSOP2-Jul-02 3:14 
GeneralRe: Process Status Pin
Phil.Benson2-Jul-02 3:22
professionalPhil.Benson2-Jul-02 3:22 
Generaluser selects text printed by drawtext Pin
2-Jul-02 2:50
suss2-Jul-02 2:50 
GeneralRe: user selects text printed by drawtext Pin
Chris Losinger2-Jul-02 3:16
professionalChris Losinger2-Jul-02 3:16 
GeneralRe: user selects text printed by drawtext Pin
#realJSOP2-Jul-02 5:22
professional#realJSOP2-Jul-02 5:22 
QuestionHow can I make my app to use less memory Pin
Ola Carlsson2-Jul-02 2:18
Ola Carlsson2-Jul-02 2:18 
AnswerRe: How can I make my app to use less memory Pin
#realJSOP2-Jul-02 3:22
professional#realJSOP2-Jul-02 3:22 
The amount of memory required by a CMyClass object is the same, regardless of whether it's used on the stack or the heap.

Garbage collection in VC++ is non-existant. If you use the heap, use it wisely. If I have a given object new'd/deleted many times, I will usually redesign the app so that the class is defined as a global variable and new'd in InitInstance, and deleted in the app destructor. Of course, this assumes that you don't need more than a single instance of the class object.

Each app's requirements are different.

Last item of note - I'm not sure if there's a limit on the size of the stack in a 32-bit program. In 16-bit days, it was 64k, so you had to be very careful of what data you put there.



------- signature starts

"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

Please review the Legal Disclaimer in my bio.

------- signature ends
GeneralRe: How can I make my app to use less memory Pin
Mike Nordell2-Jul-02 8:10
Mike Nordell2-Jul-02 8:10 
AnswerRe: How can I make my app to use less memory Pin
Mike Nordell2-Jul-02 6:38
Mike Nordell2-Jul-02 6:38 
QuestionHow can I read from Serial Port? Pin
2-Jul-02 1:21
suss2-Jul-02 1:21 
AnswerRe: How can I read from Serial Port? Pin
Anders Molin2-Jul-02 1:30
professionalAnders Molin2-Jul-02 1:30 
GeneralMaximizing Aplication Pin
RuiSantiago2-Jul-02 1:13
RuiSantiago2-Jul-02 1:13 
GeneralRe: Maximizing Aplication Pin
Nish Nishant2-Jul-02 1:30
sitebuilderNish Nishant2-Jul-02 1:30 
GeneralRe: Maximizing Aplication Pin
RuiSantiago2-Jul-02 1:53
RuiSantiago2-Jul-02 1:53 
GeneralRe: Maximizing Aplication Pin
Nish Nishant2-Jul-02 2:05
sitebuilderNish Nishant2-Jul-02 2:05 
GeneralRe: Maximizing Aplication Pin
RuiSantiago2-Jul-02 2:17
RuiSantiago2-Jul-02 2:17 
GeneralRe: Maximizing Aplication Pin
RuiSantiago2-Jul-02 2:22
RuiSantiago2-Jul-02 2:22 
GeneralRe: Maximizing Aplication Pin
RuiSantiago2-Jul-02 3:41
RuiSantiago2-Jul-02 3:41 
GeneralRe: Maximizing Aplication Pin
RuiSantiago2-Jul-02 4:34
RuiSantiago2-Jul-02 4:34 
GeneralHelpppppppppppppp..!!! Pin
Renjith Ramachandran1-Jul-02 23:51
Renjith Ramachandran1-Jul-02 23:51 
GeneralRe: Helpppppppppppppp..!!! Pin
Christian Graus2-Jul-02 13:06
protectorChristian Graus2-Jul-02 13:06 
GeneralRe: Helpppppppppppppp..!!! Pin
Ravi Bhavnani2-Jul-02 13:15
professionalRavi Bhavnani2-Jul-02 13:15 
GeneralRe: Helpppppppppppppp..!!! Pin
Rama Krishna Vavilala2-Jul-02 13:57
Rama Krishna Vavilala2-Jul-02 13:57 
GeneralOutlining a Bitmap... Pin
Manikandan1-Jul-02 23:50
Manikandan1-Jul-02 23:50 

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.