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

C / C++ / MFC

 
AnswerRe: how to read all files from a folder Pin
NotPolitcallyCorrect26-Jun-13 0:50
NotPolitcallyCorrect26-Jun-13 0:50 
AnswerRe: how to read all files from a folder Pin
Erudite_Eric26-Jun-13 1:05
Erudite_Eric26-Jun-13 1:05 
AnswerRe: how to read all files from a folder Pin
Richard MacCutchan26-Jun-13 2:07
mveRichard MacCutchan26-Jun-13 2:07 
AnswerRe: how to read all files from a folder Pin
David Crow26-Jun-13 3:48
David Crow26-Jun-13 3:48 
QuestionVariable Logger - [Solved] Pin
ErfanNoury25-Jun-13 22:42
ErfanNoury25-Jun-13 22:42 
AnswerRe: Variable Logger Pin
Marco Bertschi25-Jun-13 23:00
protectorMarco Bertschi25-Jun-13 23:00 
GeneralRe: Variable Logger Pin
ErfanNoury25-Jun-13 23:07
ErfanNoury25-Jun-13 23:07 
GeneralRe: Variable Logger Pin
Marco Bertschi25-Jun-13 23:19
protectorMarco Bertschi25-Jun-13 23:19 
ErfanNoury wrote:
Since there are many statements changing the value of the variable, this won't be a practical solution.

I thought that you were thinking about something like that - The most important precondition is that you know when a variable value changes.
It is impossible to find this out when the variable of type char, int or any other native type.
The easiest way would probably be to encapsulate the variable with a setter where you can reckon that the value has changed:
C#
int main(void){
   int myVariable;
   
   SetMyVariable(myVariable, 0);

   SetMyVariable(myVariable, 345);

   return 0;
}

void SetMyVariable(int variable, value){
   variable = value;
   cout<<"myVariable has the value "<< value;

   return;
}


GeneralRe: Variable Logger Pin
ErfanNoury25-Jun-13 23:33
ErfanNoury25-Jun-13 23:33 
GeneralRe: Variable Logger Pin
CPallini26-Jun-13 9:12
mveCPallini26-Jun-13 9:12 
QuestionWhen timeSetEvent() start? Pin
econy25-Jun-13 8:00
econy25-Jun-13 8:00 
AnswerRe: When timeSetEvent() start? Pin
David Crow25-Jun-13 9:56
David Crow25-Jun-13 9:56 
GeneralRe: When timeSetEvent() start? Pin
econy25-Jun-13 10:29
econy25-Jun-13 10:29 
GeneralRe: When timeSetEvent() start? Pin
David Crow25-Jun-13 10:31
David Crow25-Jun-13 10:31 
QuestionConvertin from c++ 6 to Visual studio C++ 10 Pin
mamoony25-Jun-13 7:41
mamoony25-Jun-13 7:41 
AnswerRe: Convertin from c++ 6 to Visual studio C++ 10 Pin
CPallini25-Jun-13 8:43
mveCPallini25-Jun-13 8:43 
GeneralRe: Convertin from c++ 6 to Visual studio C++ 10 Pin
mamoony25-Jun-13 9:01
mamoony25-Jun-13 9:01 
GeneralRe: Convertin from c++ 6 to Visual studio C++ 10 Pin
CPallini25-Jun-13 9:09
mveCPallini25-Jun-13 9:09 
GeneralRe: Convertin from c++ 6 to Visual studio C++ 10 Pin
mamoony25-Jun-13 9:41
mamoony25-Jun-13 9:41 
GeneralRe: Convertin from c++ 6 to Visual studio C++ 10 Pin
mamoony25-Jun-13 9:42
mamoony25-Jun-13 9:42 
GeneralRe: Convertin from c++ 6 to Visual studio C++ 10 Pin
CPallini25-Jun-13 9:53
mveCPallini25-Jun-13 9:53 
GeneralRe: Convertin from c++ 6 to Visual studio C++ 10 Pin
mamoony25-Jun-13 9:54
mamoony25-Jun-13 9:54 
GeneralRe: Convertin from c++ 6 to Visual studio C++ 10 Pin
JackDingler26-Jun-13 11:37
JackDingler26-Jun-13 11:37 
QuestiontimeSetEvent() question Pin
econy25-Jun-13 6:45
econy25-Jun-13 6:45 
AnswerRe: timeSetEvent() question Pin
econy25-Jun-13 6:58
econy25-Jun-13 6:58 

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.