Click here to Skip to main content
15,895,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionpRecordset GetItem Pin
MsmVc14-Sep-09 21:38
MsmVc14-Sep-09 21:38 
AnswerRe: pRecordset GetItem Pin
MsmVc14-Sep-09 22:28
MsmVc14-Sep-09 22:28 
QuestionRe: pRecordset GetItem Pin
David Crow15-Sep-09 3:01
David Crow15-Sep-09 3:01 
QuestionBasics C++ Pin
john563214-Sep-09 21:09
john563214-Sep-09 21:09 
AnswerRe: Basics C++ Pin
Richard MacCutchan14-Sep-09 21:32
mveRichard MacCutchan14-Sep-09 21:32 
QuestionRe: Basics C++ Pin
CPallini14-Sep-09 21:37
mveCPallini14-Sep-09 21:37 
AnswerRe: Basics C++ Pin
_AnsHUMAN_ 14-Sep-09 21:50
_AnsHUMAN_ 14-Sep-09 21:50 
AnswerRe: Basics C++ Pin
KarstenK14-Sep-09 21:54
mveKarstenK14-Sep-09 21:54 
the runtime takes care which memory is used. Every time a object is created some memory will be used. You can get the information about that getting the address of of the object.

In C++ you 3 ways to create objects

Sample code:

void sampleFunc()
{
   Object obj1;//Stacke with automatic destruction

   Object *addrObj = &obj1;//getting the address of memory
  
   //do not
   //delete addrObj;//Bug

   Object *pObj = new Object();//Heap and manuell destrucion needed!!!

   delete pObj;// to avoid memory leak;
}

Press F1 for help or google it.
Greetings from Germany

AnswerRe: Basics C++ Pin
«_Superman_»14-Sep-09 22:56
professional«_Superman_»14-Sep-09 22:56 
QuestionSyntax error in INSERT INTO statement Pin
jadhavjitendrar14-Sep-09 19:55
jadhavjitendrar14-Sep-09 19:55 
AnswerRe: Syntax error in INSERT INTO statement Pin
Code-o-mat14-Sep-09 20:32
Code-o-mat14-Sep-09 20:32 
AnswerRe: Syntax error in INSERT INTO statement Pin
CPallini14-Sep-09 21:01
mveCPallini14-Sep-09 21:01 
AnswerRe: Syntax error in INSERT INTO statement Pin
David Crow15-Sep-09 3:04
David Crow15-Sep-09 3:04 
QuestionChild Windows Pin
Cipher 2214-Sep-09 19:00
Cipher 2214-Sep-09 19:00 
AnswerRe: Child Windows Pin
Randor 15-Sep-09 1:43
professional Randor 15-Sep-09 1:43 
QuestionRe: Child Windows Pin
David Crow15-Sep-09 3:06
David Crow15-Sep-09 3:06 
Questionhow to clear the session? Pin
shru_dhuri14-Sep-09 18:59
shru_dhuri14-Sep-09 18:59 
AnswerRe: how to clear the session? Pin
«_Superman_»14-Sep-09 19:27
professional«_Superman_»14-Sep-09 19:27 
QuestionRead Text from Image file Pin
Game-point14-Sep-09 18:38
Game-point14-Sep-09 18:38 
AnswerRe: Read Text from Image file Pin
«_Superman_»14-Sep-09 19:33
professional«_Superman_»14-Sep-09 19:33 
AnswerRe: Read Text from Image file Pin
Cedric Moonen14-Sep-09 20:21
Cedric Moonen14-Sep-09 20:21 
QuestionCoCreateInstance getting the wrong coclass Pin
PaulowniaK14-Sep-09 17:01
PaulowniaK14-Sep-09 17:01 
AnswerRe: CoCreateInstance getting the wrong coclass Pin
Stuart Dootson14-Sep-09 20:39
professionalStuart Dootson14-Sep-09 20:39 
GeneralRe: CoCreateInstance getting the wrong coclass Pin
PaulowniaK14-Sep-09 20:43
PaulowniaK14-Sep-09 20:43 
AnswerRe: CoCreateInstance getting the wrong coclass Pin
Stuart Dootson15-Sep-09 0:42
professionalStuart Dootson15-Sep-09 0:42 

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.