Click here to Skip to main content
15,912,457 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDrag and Drop, (getting target info) Pin
8-May-02 1:22
suss8-May-02 1:22 
GeneralCommunicating to devices via RS232 to RS485 converter Pin
Agnihothra8-May-02 1:02
Agnihothra8-May-02 1:02 
GeneralRe: Communicating to devices via RS232 to RS485 converter Pin
Tim Smith8-May-02 2:42
Tim Smith8-May-02 2:42 
QuestionWhy Pointers? Pin
a.a8-May-02 0:58
a.a8-May-02 0:58 
AnswerRe: Why Pointers? Pin
8-May-02 1:25
suss8-May-02 1:25 
GeneralRe: Why Pointers? Pin
redeemer8-May-02 12:42
redeemer8-May-02 12:42 
GeneralRe: Why Pointers? Pin
8-May-02 22:36
suss8-May-02 22:36 
AnswerRe: Why Pointers? Pin
Philip Patrick8-May-02 1:34
professionalPhilip Patrick8-May-02 1:34 
Hmm, well, it has many advantages. Of course I can't remember all of them. But here are some.
1. Stack of the program is limited, and it is used for regular variables. Ponters are limited only by amount of memory in the computer, not on the stack.
2. When you have a class for example, which uses for example 100Mb of the memory. Now passing the variable to another function will make a copy of the class and you will have 200Mb of memory usage. Instead of this you can pass a pointer, which holds only 4 bytes. Actually this one is same as ByRef in VB - reference (you have references in C++ too).

Well, can't remember more right now, but sure others will find you enough Smile | :)

Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer

Need Web-based database administrator? You already have it!
AnswerRe: Why Pointers? Pin
Andrew Peace8-May-02 1:56
Andrew Peace8-May-02 1:56 
AnswerRe: Why Pointers? Pin
LittleYellowBird8-May-02 2:17
LittleYellowBird8-May-02 2:17 
AnswerRe: Why Pointers? Pin
Joaquín M López Muñoz8-May-02 3:07
Joaquín M López Muñoz8-May-02 3:07 
GeneralRe: Why Pointers? Pin
a.a8-May-02 3:27
a.a8-May-02 3:27 
AnswerRe: Why Pointers? Pin
Nish Nishant8-May-02 3:57
sitebuilderNish Nishant8-May-02 3:57 
AnswerRe: Why Pointers? [Just memory! ] Pin
Maxwell Chen8-May-02 8:45
Maxwell Chen8-May-02 8:45 
QuestionEasiest way to display colored text in a textbox? Pin
generic_user_id8-May-02 0:45
generic_user_id8-May-02 0:45 
AnswerRe: Easiest way to display colored text in a textbox? Pin
Nish Nishant8-May-02 4:05
sitebuilderNish Nishant8-May-02 4:05 
AnswerRe: Easiest way to display colored text in a textbox? Pin
Chris Losinger8-May-02 4:19
professionalChris Losinger8-May-02 4:19 
AnswerRe: Easiest way to display colored text in a textbox? Pin
Marc Richarme8-May-02 8:33
Marc Richarme8-May-02 8:33 
GeneralRe: Easiest way to display colored text in a textbox? Pin
generic_user_id8-May-02 23:19
generic_user_id8-May-02 23:19 
GeneralKill exe's... ( processes) Pin
Braulio Dez8-May-02 0:12
Braulio Dez8-May-02 0:12 
GeneralRe: Kill exe's... ( processes) Pin
adara8-May-02 1:43
adara8-May-02 1:43 
GeneralRe: Kill exe's... ( processes) Pin
Braulio Dez8-May-02 2:47
Braulio Dez8-May-02 2:47 
GeneralRe: Kill exe's... ( processes) Pin
adara8-May-02 4:24
adara8-May-02 4:24 
GeneralRe: Kill exe's... ( processes) Pin
Nish Nishant8-May-02 4:08
sitebuilderNish Nishant8-May-02 4:08 
GeneralRe: Kill exe's... ( processes) Pin
Braulio Dez8-May-02 4:19
Braulio Dez8-May-02 4:19 

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.