Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MultiByteToWideCHar Help? Pin
Amit j Patil12-Oct-05 21:05
Amit j Patil12-Oct-05 21:05 
QuestionPossible CDC issue Pin
wdhough11-Oct-05 1:43
wdhough11-Oct-05 1:43 
QuestionDiff between CFile and CStdioFile Pin
karmendra_js11-Oct-05 1:35
karmendra_js11-Oct-05 1:35 
AnswerRe: Diff between CFile and CStdioFile Pin
ThatsAlok11-Oct-05 1:46
ThatsAlok11-Oct-05 1:46 
AnswerRe: Diff between CFile and CStdioFile Pin
Roger Stoltz11-Oct-05 1:54
Roger Stoltz11-Oct-05 1:54 
QuestionConvert bmp to Text Pin
sonu25211-Oct-05 0:39
sonu25211-Oct-05 0:39 
AnswerRe: Convert bmp to Text Pin
Roger Stoltz11-Oct-05 1:30
Roger Stoltz11-Oct-05 1:30 
QuestionRepeated calling of a function Pin
nripun11-Oct-05 0:30
nripun11-Oct-05 0:30 
My aim is to repeatedly call a function, display the return values in an edit box, when i press a button. This should stop when i press another function.
I kept the function call and the display in an while loop which checks for the condition if the 2nd button has been pressed.
But it didnt work. The application hung. Maybe bcos the while loop never ended.
How will i go about it?

Say the function tat i want to call repeatedly is CalculateVolts() and UpdateData(FALSE) is used to update the edit box.
This is what i did.
<br />
OnButton1(){<br />
  while(flag_button2!=1){    //// the flag_button2 is 1 if i press Button2<br />
   int retVal = CalculateVolts();<br />
   m_editVal.Format("%f",f); //// CString object of the editbox<br />
   UpdateData(FALSE);<br />
  }<br />
}<br />
<br />
But since the application hung i cud never press Button2.<br />

AnswerRe: Repeated calling of a function Pin
dharani11-Oct-05 0:46
dharani11-Oct-05 0:46 
GeneralRe: Repeated calling of a function Pin
sonu25211-Oct-05 1:14
sonu25211-Oct-05 1:14 
GeneralRe: Repeated calling of a function Pin
ky_rerun11-Oct-05 7:51
ky_rerun11-Oct-05 7:51 
AnswerRe: Repeated calling of a function Pin
Bob Stanneveld11-Oct-05 1:53
Bob Stanneveld11-Oct-05 1:53 
AnswerRe: Repeated calling of a function Pin
Tim Smith11-Oct-05 3:58
Tim Smith11-Oct-05 3:58 
GeneralRe: Repeated calling of a function Pin
Trollslayer11-Oct-05 4:45
mentorTrollslayer11-Oct-05 4:45 
GeneralRe: Repeated calling of a function Pin
nripun11-Oct-05 9:14
nripun11-Oct-05 9:14 
GeneralRe: Repeated calling of a function Pin
PJ Arends11-Oct-05 15:45
professionalPJ Arends11-Oct-05 15:45 
GeneralRe: Repeated calling of a function Pin
Roger Stoltz11-Oct-05 21:32
Roger Stoltz11-Oct-05 21:32 
GeneralRe: Repeated calling of a function Pin
nripun11-Oct-05 9:15
nripun11-Oct-05 9:15 
QuestionON_UPDATE_COMMAND_UI Help me !!! Pin
dharani11-Oct-05 0:26
dharani11-Oct-05 0:26 
AnswerRe: ON_UPDATE_COMMAND_UI Help me !!! Pin
ThatsAlok11-Oct-05 0:44
ThatsAlok11-Oct-05 0:44 
GeneralRe: ON_UPDATE_COMMAND_UI Help me !!! Pin
dharani11-Oct-05 0:49
dharani11-Oct-05 0:49 
GeneralRe: ON_UPDATE_COMMAND_UI Help me !!! Pin
ThatsAlok11-Oct-05 0:55
ThatsAlok11-Oct-05 0:55 
GeneralRe: ON_UPDATE_COMMAND_UI Help me !!! Pin
Mircea Puiu11-Oct-05 0:57
Mircea Puiu11-Oct-05 0:57 
AnswerRe: ON_UPDATE_COMMAND_UI Help me !!! Pin
David Crow11-Oct-05 2:46
David Crow11-Oct-05 2:46 
AnswerRe: ON_UPDATE_COMMAND_UI Help me !!! Pin
tirucapricorn12-Oct-05 18:37
tirucapricorn12-Oct-05 18:37 

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.