Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionEdit a record in a DB table opened with ODBC Pin
sirtimid8-Sep-05 4:32
sirtimid8-Sep-05 4:32 
AnswerRe: Edit a record in a DB table opened with ODBC Pin
David Crow8-Sep-05 4:35
David Crow8-Sep-05 4:35 
GeneralRe: Edit a record in a DB table opened with ODBC Pin
sirtimid8-Sep-05 4:51
sirtimid8-Sep-05 4:51 
GeneralRe: Edit a record in a DB table opened with ODBC Pin
David Crow8-Sep-05 5:53
David Crow8-Sep-05 5:53 
QuestionRedefinition Pin
Babto8-Sep-05 4:13
Babto8-Sep-05 4:13 
AnswerRe: Redefinition Pin
Cedric Moonen8-Sep-05 4:17
Cedric Moonen8-Sep-05 4:17 
GeneralRe: Redefinition Pin
Babto8-Sep-05 5:41
Babto8-Sep-05 5:41 
GeneralRe: Redefinition Pin
Maximilien8-Sep-05 5:59
Maximilien8-Sep-05 5:59 
Why would you want ot redeclare the same variable in the same logical code block ?

can't you declare it at the top of the block, and assign ( and re-assign ) values as needed ?

...
int iValue;
...
iValue = 4;

...
iValue = 10;
...


maybe your variable type does not support an = operator ( if it's a class ), you should define one, or do something like :

MyClass* pMyClass; // class with a constructor that accept an int value.

pMyClass = new MyClass( 5 );
...

delete pMyClass;

pMyClass = new MyClass( 10 );
...

delete pMyClass;




Maximilien Lincourt
Your Head A Splode - Strong Bad
AnswerRe: Redefinition Pin
David Crow8-Sep-05 4:32
David Crow8-Sep-05 4:32 
QuestionProblem with worker thread Pin
ashtwin8-Sep-05 4:06
ashtwin8-Sep-05 4:06 
AnswerRe: Problem with worker thread Pin
David Crow8-Sep-05 4:34
David Crow8-Sep-05 4:34 
AnswerRe: Problem with worker thread Pin
Marc Soleda8-Sep-05 4:37
Marc Soleda8-Sep-05 4:37 
AnswerRe: Problem with worker thread Pin
Jim Howard8-Sep-05 12:54
Jim Howard8-Sep-05 12:54 
AnswerRe: Problem with worker thread Pin
ThatsAlok8-Sep-05 18:16
ThatsAlok8-Sep-05 18:16 
QuestionEdit a record in a DB table opened with ODBC Pin
sirtimid8-Sep-05 3:52
sirtimid8-Sep-05 3:52 
AnswerRe: Edit a record in a DB table opened with ODBC Pin
David Crow8-Sep-05 6:01
David Crow8-Sep-05 6:01 
QuestionUsing the Registry Pin
sweep1238-Sep-05 3:39
sweep1238-Sep-05 3:39 
AnswerRe: Using the Registry Pin
kakan8-Sep-05 3:55
professionalkakan8-Sep-05 3:55 
AnswerRe: Using the Registry Pin
Marc Soleda8-Sep-05 4:02
Marc Soleda8-Sep-05 4:02 
AnswerRe: Using the Registry Pin
David Crow8-Sep-05 7:40
David Crow8-Sep-05 7:40 
Questionhow do I turn off a hidden variable?? Pin
IlanTal8-Sep-05 3:37
IlanTal8-Sep-05 3:37 
Questionmap<string, set<string> > Pin
Achim Klein8-Sep-05 3:15
Achim Klein8-Sep-05 3:15 
AnswerRe: map<string, set<string> > Pin
Niklas L8-Sep-05 3:42
Niklas L8-Sep-05 3:42 
GeneralRe: map<string, set<string> > Pin
Achim Klein8-Sep-05 4:01
Achim Klein8-Sep-05 4:01 
AnswerRe: map<string, set<string> > Pin
Niklas L8-Sep-05 3:58
Niklas L8-Sep-05 3: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.