Click here to Skip to main content
15,917,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems with HHOOK variable Pin
r3dqu33n28-Mar-05 9:45
r3dqu33n28-Mar-05 9:45 
GeneralRe: Problems with HHOOK variable Pin
David Crow28-Mar-05 9:51
David Crow28-Mar-05 9:51 
GeneralRe: Problems with HHOOK variable Pin
r3dqu33n28-Mar-05 10:03
r3dqu33n28-Mar-05 10:03 
GeneralRe: Problems with HHOOK variable Pin
David Crow28-Mar-05 10:22
David Crow28-Mar-05 10:22 
GeneralBitmap Data Manipulation Pin
LighthouseJ28-Mar-05 7:07
LighthouseJ28-Mar-05 7:07 
GeneralRe: Bitmap Data Manipulation Pin
Chris Losinger28-Mar-05 10:42
professionalChris Losinger28-Mar-05 10:42 
GeneralRe: Bitmap Data Manipulation Pin
LighthouseJ28-Mar-05 12:23
LighthouseJ28-Mar-05 12:23 
Generalerror - edit box variable cannot be evaluated Pin
theFrenchHornet28-Mar-05 5:22
theFrenchHornet28-Mar-05 5:22 
I am getting a runtime error that an edit box variable on a dialog cannot be evaluated.
I am not seeing what the problem is and would appreciate it if someone can point it out to me.


There is a global variable declared as:
<br />
double currentBP;<br />


In the first initDialog of the program, currentBP is initialized.

Class CGetNewBP displays a dialog. There is an edit box for the user to enter a value. It is declared as:
<br />
double m_newBP;<br />

When the user clicks OK on this dialog, the value entered into the edit box is transferred to the global currentBP.


On another dialog, there is a button - Change BP. When this button is clicked, the
CGetNewBP dialog is displayed as modal. On return, the global currentBP which was just
updated is assigned to an edit box declared:
<br />
double m_currentBP;<br />


At this assignment, however, an exception is raised saying that m_currentBP cannot be
evaluated. If I comment out the call to create and display CGetNewBP, the code executes
without exception, and m_currentBP displays the initialized value of the global currentBP.
When the display CGetNewBP code is in, and execution is broken at the assignment statement,
the value in the global currentBP has been updated correctly.

<br />
void CModeCtrlDlg::OnBnClickedChangeBP ()<br />
{<br />
  CGetNewBP getNewBP = new CGetNewBP;<br />
  INT_PTR nResponse = getNewBP.DoModal();<br />
  delete getNewBP;<br />
  m_currentBP = currentBP;  <- error message that m_currentBP cannot be evaluated<br />
  UpdateData(false);<br />
}<br />


Without the first 3 lines, no error message and m_currentBP accepts the assignment
and displays on the screen.

I have tried further qualifying m_currentBP as CModeCtrlDlg::m_currentBP, with no success.
GeneralRe: error - edit box variable cannot be evaluated Pin
David Crow28-Mar-05 6:02
David Crow28-Mar-05 6:02 
GeneralRe: error - edit box variable cannot be evaluated Pin
theFrenchHornet28-Mar-05 6:35
theFrenchHornet28-Mar-05 6:35 
Generaltopmost window stye without getting the focus Pin
Cris28-Mar-05 3:40
Cris28-Mar-05 3:40 
GeneralRe: topmost window stye without getting the focus Pin
ThatsAlok28-Mar-05 17:47
ThatsAlok28-Mar-05 17:47 
GeneralRe: topmost window stye without getting the focus Pin
Cris29-Mar-05 8:10
Cris29-Mar-05 8:10 
GeneralMPEG-2 Transport Stream converter Pin
Alexander M.,28-Mar-05 3:15
Alexander M.,28-Mar-05 3:15 
Generalproblem with DLL and CString Pin
eli1502197928-Mar-05 3:06
eli1502197928-Mar-05 3:06 
GeneralRe: problem with DLL and CString Pin
Joel Holdsworth28-Mar-05 3:39
Joel Holdsworth28-Mar-05 3:39 
GeneralRe: problem with DLL and CString Pin
Alexander M.,28-Mar-05 3:41
Alexander M.,28-Mar-05 3:41 
GeneralRe: problem with DLL and CString Pin
eli1502197928-Mar-05 3:58
eli1502197928-Mar-05 3:58 
GeneralRe: problem with DLL and CString Pin
Blake Miller28-Mar-05 4:39
Blake Miller28-Mar-05 4:39 
GeneralRe: problem with DLL and CString Pin
jogibaer7914-Apr-05 1:35
jogibaer7914-Apr-05 1:35 
GeneralRe: problem with DLL and CString Pin
Blake Miller14-Apr-05 4:17
Blake Miller14-Apr-05 4:17 
QuestionHow to display MultiLine in MFCGrid Cell Pin
UrbanBlues28-Mar-05 2:26
UrbanBlues28-Mar-05 2:26 
AnswerRe: How to display MultiLine in MFCGrid Cell Pin
PJ Arends28-Mar-05 6:44
professionalPJ Arends28-Mar-05 6:44 
GeneralRuntime selection of Multiple String Table Pin
CookieT28-Mar-05 2:25
CookieT28-Mar-05 2:25 
QuestionHow do I change the tooltip of a title bar button? Pin
Hiigara28-Mar-05 2:18
Hiigara28-Mar-05 2:18 

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.