Click here to Skip to main content
15,904,415 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateProcess return code 1 however Process does not start Pin
ForNow28-Jun-13 5:39
ForNow28-Jun-13 5:39 
QuestionHow to change access database password with CDatabase? Pin
Anorexic Tribble27-Jun-13 1:04
Anorexic Tribble27-Jun-13 1:04 
AnswerRe: How to change access database password with CDatabase? Pin
André Kraak27-Jun-13 8:46
André Kraak27-Jun-13 8:46 
GeneralRe: How to change access database password with CDatabase? Pin
Anorexic Tribble25-Jul-13 21:27
Anorexic Tribble25-Jul-13 21:27 
QuestionIcon on Button not display in XP. Pin
Le@rner26-Jun-13 19:32
Le@rner26-Jun-13 19:32 
AnswerRe: Icon on Button not display in XP. Pin
Richard MacCutchan26-Jun-13 20:45
mveRichard MacCutchan26-Jun-13 20:45 
GeneralRe: Icon on Button not display in XP. Pin
Le@rner26-Jun-13 22:02
Le@rner26-Jun-13 22:02 
GeneralRe: Icon on Button not display in XP. Pin
Richard MacCutchan26-Jun-13 22:24
mveRichard MacCutchan26-Jun-13 22:24 
AnswerRe: Icon on Button not display in XP. Pin
_AnsHUMAN_ 27-Jun-13 3:44
_AnsHUMAN_ 27-Jun-13 3:44 
QuestionThread synchronization quesiton Pin
econy26-Jun-13 3:33
econy26-Jun-13 3:33 
AnswerRe: Thread synchronization quesiton Pin
econy26-Jun-13 4:39
econy26-Jun-13 4:39 
GeneralRe: Thread synchronization quesiton Pin
pasztorpisti26-Jun-13 10:41
pasztorpisti26-Jun-13 10:41 
AnswerRe: Thread synchronization quesiton Pin
«_Superman_»26-Jun-13 18:17
professional«_Superman_»26-Jun-13 18:17 
GeneralRe: Thread synchronization quesiton Pin
econy10-Jul-13 7:21
econy10-Jul-13 7:21 
Questionhow to read all files from a folder Pin
hmgm25-Jun-13 23:25
hmgm25-Jun-13 23:25 
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 

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.