Click here to Skip to main content
15,920,801 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionError C2621 Pin
Reagan Conservative14-May-07 10:10
Reagan Conservative14-May-07 10:10 
AnswerRe: Error C2621 Pin
David Crow14-May-07 10:37
David Crow14-May-07 10:37 
GeneralRe: Error C2621 Pin
Reagan Conservative14-May-07 10:45
Reagan Conservative14-May-07 10:45 
AnswerRe: Error C2621 Pin
Dustin Henry14-May-07 10:47
Dustin Henry14-May-07 10:47 
GeneralRe: Error C2621 Pin
Reagan Conservative14-May-07 11:14
Reagan Conservative14-May-07 11:14 
QuestionProblem with VC6 to VS2K5 porting Pin
simoncoul14-May-07 9:23
simoncoul14-May-07 9:23 
AnswerRe: Problem with VC6 to VS2K5 porting Pin
PJ Arends14-May-07 9:42
professionalPJ Arends14-May-07 9:42 
GeneralRe: Problem with VC6 to VS2K5 porting Pin
simoncoul14-May-07 10:01
simoncoul14-May-07 10:01 
Thank you very much for the quick response! These are the values that I have for my DDV & DDX

DDV_MinMaxFloat(pDX, m_dradix, 0.f, 1000.f);
DDX_Text(pDX, IDC_EDITX, m_editx);
DDV_MinMaxFloat(pDX, m_editx, 0.f, 1.f);
DDX_Text(pDX, IDC_EDITY, m_edity);
DDV_MinMaxFloat(pDX, m_edity, 0.f, 1.f);
DDX_Text(pDX, IDC_EDITL, m_editl); 


I checked out the assertion and it points me to this:

//Update x,y,and L as the sliders are moved
void CLayerDlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{

	//update display values for all 3 sliders
	switch(pScrollBar->GetDlgCtrlID() ){
	case IDC_SLIDERL:	
  	  if (m_sliderl == nPos)
		break;
	  UpdateData(CTRL2VAR);
	  //we don't want the layer width to be 0 so set it to min
      if (m_sliderl < SLIDERLMIN)
		m_sliderl = SLIDERLMIN;
  	  m_editl = (float)m_sliderl*5.0;
	  UpdateData(VAR2CTRL);
    break;
	case IDC_SLIDERX:
  	  if (m_sliderx == nPos)
		break;
	  UpdateData(CTRL2VAR);
******	  m_editx = (float)m_sliderx/100.0;
	  UpdateData(VAR2CTRL);
	break;
	case IDC_SLIDERY:
  	  if (m_slidery == nPos)
		break;
	  UpdateData(CTRL2VAR);
******	  m_edity = (float)m_slidery/100.0;
	  UpdateData(VAR2CTRL);
	break;
	}//end switch statement
	
	CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
}


At the point where I put the stars is where the assertion points me to. I think that my problem is the variable "m_dradix" from above as the values of m_editx and m_edity into a function that uses this variable. Is there are way I can track this variable through out the whole process to see what happens to it's value, I cannot figure out how to do it in 2k5?

Thanks again

Simon
AnswerRe: Problem with VC6 to VS2K5 porting Pin
Mark Salsbery14-May-07 10:26
Mark Salsbery14-May-07 10:26 
GeneralRe: Problem with VC6 to VS2K5 porting Pin
simoncoul15-May-07 3:16
simoncoul15-May-07 3:16 
GeneralRe: Problem with VC6 to VS2K5 porting Pin
Mark Salsbery15-May-07 4:24
Mark Salsbery15-May-07 4:24 
GeneralRe: Problem with VC6 to VS2K5 porting Pin
simoncoul15-May-07 5:37
simoncoul15-May-07 5:37 
Questionupdating status bar Pin
RalfPeter14-May-07 8:24
RalfPeter14-May-07 8:24 
AnswerRe: updating status bar Pin
led mike14-May-07 9:05
led mike14-May-07 9:05 
GeneralRe: updating status bar Pin
RalfPeter14-May-07 11:19
RalfPeter14-May-07 11:19 
GeneralRe: updating status bar Pin
led mike14-May-07 12:35
led mike14-May-07 12:35 
Questiondialog color Pin
prathuraj14-May-07 5:14
prathuraj14-May-07 5:14 
AnswerRe: dialog color Pin
Arman S.14-May-07 5:21
Arman S.14-May-07 5:21 
AnswerRe: dialog color Pin
Hamid_RT14-May-07 5:41
Hamid_RT14-May-07 5:41 
QuestionC++ Multiple inheritance Pin
ScotDolan14-May-07 4:46
ScotDolan14-May-07 4:46 
QuestionRe: C++ Multiple inheritance Pin
David Crow14-May-07 4:54
David Crow14-May-07 4:54 
AnswerRe: C++ Multiple inheritance Pin
ScotDolan14-May-07 4:59
ScotDolan14-May-07 4:59 
AnswerRe: C++ Multiple inheritance Pin
jhwurmbach14-May-07 4:59
jhwurmbach14-May-07 4:59 
AnswerRe: C++ Multiple inheritance Pin
Cedric Moonen14-May-07 5:04
Cedric Moonen14-May-07 5:04 
GeneralRe: C++ Multiple inheritance Pin
ScotDolan14-May-07 5:14
ScotDolan14-May-07 5:14 

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.