Click here to Skip to main content
15,890,670 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: THIS ? Pin
Gerry23-Jul-01 23:58
Gerry23-Jul-01 23:58 
GeneralRe: THIS ? Pin
Gérald Mercet23-Jul-01 23:05
Gérald Mercet23-Jul-01 23:05 
GeneralRe: THIS ? Pin
Gerry23-Jul-01 23:13
Gerry23-Jul-01 23:13 
GeneralRe: THIS ? Pin
Gérald Mercet23-Jul-01 23:23
Gérald Mercet23-Jul-01 23:23 
GeneralRe: THIS ? Pin
Christian Graus23-Jul-01 23:16
protectorChristian Graus23-Jul-01 23:16 
GeneralRe: THIS ? Pin
Gérald Mercet23-Jul-01 23:24
Gérald Mercet23-Jul-01 23:24 
Questionhow pointers work? Pin
23-Jul-01 22:07
suss23-Jul-01 22:07 
AnswerRe: how pointers work? Pin
Gerry23-Jul-01 22:52
Gerry23-Jul-01 22:52 
Pointers can be used anywhere in the programs you write. These are to save memory on startup and are faster to access and easier passed between methods.

We can allocate memory, use the resources, & deallocate the memory, keeping our system in good shape.

So, if we had.
someFunction() {
CListBox myListBox //Allocate memory on stack.

myListBox.AddString(""); //Call method.
}//Object destroyed on exit (out of scope).

or we could have

someFunction() {
CListBox* pListBox = new CListBox; //Allocate memory on stack.

pListBox->AddString(""); //Call method.

delete pListBox; //Destroy memory, give the system back the memory on the heap.
}

We can easily pass our pointers to other functions, saving time, no overhead in copying objects, copy by reference or copy by value, value is slower.

Hope this helps a bit....The best way to get experience with pointers is to use.

Gerry.
AnswerRe: how pointers work? Pin
23-Jul-01 23:23
suss23-Jul-01 23:23 
GeneralRe: how pointers work? Pin
23-Jul-01 23:39
suss23-Jul-01 23:39 
GeneralRe: how pointers work? Pin
23-Jul-01 23:40
suss23-Jul-01 23:40 
GeneralThanks Gerry & anomyous Pin
23-Jul-01 23:41
suss23-Jul-01 23:41 
GeneralTitle: Out of memory ... Pin
Hadi Rezaee23-Jul-01 21:27
Hadi Rezaee23-Jul-01 21:27 
GeneralRe: Title: Out of memory ... Pin
Gerry23-Jul-01 23:44
Gerry23-Jul-01 23:44 
GeneralWTL howto use the CWindow base class Pin
Remon Spekreijse23-Jul-01 21:19
Remon Spekreijse23-Jul-01 21:19 
GeneralHELP !!! HELP!!! HELP !!! my dsw file destroyed ! I cant open my project !!!!!!!! PLEASE URGENT !!!! Pin
23-Jul-01 20:40
suss23-Jul-01 20:40 
GeneralRe: HELP !!! HELP!!! HELP !!! my dsw file destroyed ! I cant open my project !!!!!!!! PLEASE URGENT !!!! Pin
Ulf Öhlén23-Jul-01 21:15
Ulf Öhlén23-Jul-01 21:15 
GeneralThanks !!! I Try it But I gets the error message: Out Of Memory ! Please H E L P !!!!!!!!!!!!!!!!! Pin
23-Jul-01 21:38
suss23-Jul-01 21:38 
GeneralRe: Thanks !!! I Try it But I gets the error message: Out Of Memory ! Please H E L P !!!!!!!!!!!!!!!!! Pin
Ulf Öhlén23-Jul-01 22:06
Ulf Öhlén23-Jul-01 22:06 
GeneralThank you very very very very very much !!!!!!!!!!!! Pin
23-Jul-01 22:25
suss23-Jul-01 22:25 
GeneralSetting text color in a static box. Pin
John Uhlenbrock23-Jul-01 13:28
John Uhlenbrock23-Jul-01 13:28 
GeneralRe: Setting text color in a static box. Pin
Christian Graus23-Jul-01 14:27
protectorChristian Graus23-Jul-01 14:27 
QuestionDao SQL? Pin
otvac23-Jul-01 13:26
otvac23-Jul-01 13:26 
AnswerRe: Dao SQL? Pin
Carlos Antollini23-Jul-01 14:47
Carlos Antollini23-Jul-01 14:47 
GeneralDisplaying Bitmpas On Win32 Apps Pin
dark12023-Jul-01 13:07
dark12023-Jul-01 13:07 

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.