Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: plotting in Visual Studio C++ Pin
El Corazon12-Apr-06 13:28
El Corazon12-Apr-06 13:28 
QuestionDevice drivers: MSVAD sample drivers Pin
imsaady12-Apr-06 10:04
imsaady12-Apr-06 10:04 
QuestionEditing long lines in VC++ 6.0 Pin
Ger Hayden12-Apr-06 9:22
Ger Hayden12-Apr-06 9:22 
AnswerRe: Editing long lines in VC++ 6.0 Pin
David Crow12-Apr-06 9:39
David Crow12-Apr-06 9:39 
GeneralRe: Editing long lines in VC++ 6.0 Pin
Ger Hayden12-Apr-06 9:50
Ger Hayden12-Apr-06 9:50 
QuestionVC++ 6 project works in debug but not release Pin
smikesmith12-Apr-06 8:56
smikesmith12-Apr-06 8:56 
AnswerRe: VC++ 6 project works in debug but not release Pin
prasad_som12-Apr-06 19:21
prasad_som12-Apr-06 19:21 
QuestionPlease Help! What would cause Member Variable problem? Pin
Charlie Curtis12-Apr-06 8:54
Charlie Curtis12-Apr-06 8:54 
Confused | :confused: Hi EveryOne!,

I will add code later, but I am having a problem with member variables. As you will see in the code the variables are being created and ClassWizard recognizes them. However, when I try to access them in the .CPP file they aren't working (I can add events from class wizard for them). I.E. I copy the variable from it's definition in the header file place it where I need it in the .CPP file and place a . (dot) after it, but it does not provide me a list of member functions that should be available. It does nothing. There is one exception and that is the m_CalUICCombo it works fine. The m_FySelected (also a ComboBox) does not work? Following is the Header file followed by the .cpp file. To keep this post down I've only inserted the relavant parts. Has anyone every run into this problem and if so what did you do to fix it?

Many Thanks in advance...
Charlie

// Header File Starts Here.<br />
class CECalAppendixIForm : public CFormView<br />
{<br />
protected:<br />
	CECalAppendixIForm();           // protected constructor used by dynamic creation<br />
	DECLARE_DYNCREATE(CECalAppendixIForm)<br />
<br />
// Form Data<br />
public:<br />
	//{{AFX_DATA(CECalAppendixIForm)<br />
	enum { IDD = IDD_APPENDIXI_FORM_VIEW };<br />
	CComboBox			m_FySelected;<br />
	CLabel				m_SelectedItemsLabel;<br />
	CLabel				m_AppendixILabel;<br />
	CComboBox			m_CalUICCombo;<br />
	//}}AFX_DATA<br />
<br />
// Attributes  <br />
public:<br />
	SYSTEMTIME ct;<br />
<br />
<br />
	CImgViewerDoc* GetDocument();<br />
	CString csHdrLine;<br />
// Operations<br />
public:<br />
<br />
// Overrides<br />
	// ClassWizard generated virtual function overrides<br />
	//{{AFX_VIRTUAL(CECalAppendixIForm)<br />
	public:<br />
	virtual void OnInitialUpdate();<br />
	protected:<br />
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support<br />
	virtual void OnDraw(CDC* pDC);<br />
	//}}AFX_VIRTUAL<br />
<br />
// Implementation<br />
protected:<br />
	virtual ~CECalAppendixIForm();<br />
#ifdef _DEBUG<br />
	virtual void AssertValid() const;<br />
	virtual void Dump(CDumpContext& dc) const;<br />
#endif<br />
<br />
	// Generated message map functions<br />
	//{{AFX_MSG(CECalAppendixIForm)<br />
	afx_msg void OnCloseupCalUIC();<br />
	afx_msg void OnCloseupFySelected();<br />
	//}}AFX_MSG<br />
	DECLARE_MESSAGE_MAP()<br />
};<br />
<br />
// Source file Starts Here.<br />
<br />
IMPLEMENT_DYNCREATE(CECalAppendixIForm, CFormView)<br />
<br />
CECalAppendixIForm::CECalAppendixIForm()<br />
	: CFormView(CECalAppendixIForm::IDD)<br />
{<br />
	//{{AFX_DATA_INIT(CECalAppendixIForm)<br />
	//}}AFX_DATA_INIT<br />
}<br />
<br />
CECalAppendixIForm::~CECalAppendixIForm()<br />
{<br />
}<br />
<br />
void CECalAppendixIForm::DoDataExchange(CDataExchange* pDX)<br />
{<br />
	CFormView::DoDataExchange(pDX);<br />
	//{{AFX_DATA_MAP(CECalAppendixIForm)<br />
	DDX_Control(pDX, IDC_FYSELECTED, m_FySelected);<br />
	DDX_Control(pDX, IDC_SELECTITEMS, m_SelectedItemsLabel);<br />
	DDX_Control(pDX, IDC_APPENDIXI, m_AppendixILabel);<br />
	DDX_Control(pDX, IDC_CALUICOMBO, m_CalUICCombo);<br />
	//}}AFX_DATA_MAP<br />
}<br />
<br />
<br />
BEGIN_MESSAGE_MAP(CECalAppendixIForm, CFormView)<br />
	//{{AFX_MSG_MAP(CECalAppendixIForm)<br />
	ON_CBN_CLOSEUP(IDC_CALUICOMBO, OnCloseupCalUIC)<br />
	ON_CBN_CLOSEUP(IDC_FYSELECTED, OnCloseupFySelected)<br />
	//}}AFX_MSG_MAP<br />
END_MESSAGE_MAP()<br />
<br />
#ifdef _DEBUG<br />
void CECalAppendixIForm::AssertValid() const<br />
{<br />
	CFormView::AssertValid();<br />
}<br />
<br />
void CECalAppendixIForm::Dump(CDumpContext& dc) const<br />
{<br />
	CFormView::Dump(dc);<br />
}<br />
#endif //_DEBUG<br />
<br />
CImgViewerDoc* CECalAppendixIForm::GetDocument() // non-debug version is inline<br />
{<br />
	//ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CECalTrackingDoc)));<br />
	m_pDocument->IsKindOf(RUNTIME_CLASS(CImgViewerDoc));<br />
	return (CImgViewerDoc*)m_pDocument;<br />
}<br />
/////////////////////////////////////////////////////////////////////////////<br />
// CECalAppendixIForm message handlers<br />
<br />
void CECalAppendixIForm::OnDraw(CDC* pDC) <br />
{<br />
	SetScrollSizes(MM_TEXT, CSize(1200,1200)); // Larger than the Frame so the VScroll Bar is shown.<br />
	CImgViewerDoc* pDoc = GetDocument();<br />
	pDoc->csHdrLine = "APPENDIX I";<br />
	pDoc->UpdateAllViews(this);<br />
}<br />
<br />
void CECalAppendixIForm::OnCloseupCalUIC() <br />
{<br />
}<br />
<br />
void CECalAppendixIForm::OnInitialUpdate() <br />
{<br />
	CFormView::OnInitialUpdate();<br />
	<br />
	CSize sizeTotal;<br />
<br />
	// These sizes insure that when the OnDraw Function is called with larger values<br />
	// The VScrollBar will be drawn.<br />
	sizeTotal.cx = 250;<br />
	sizeTotal.cy = 100;<br />
	SetScrollSizes(MM_TEXT, sizeTotal);<br />
<br />
	m_SelectedItemsLabel.SetWindowText("There are No Input Item(s) required for this Appendix.");<br />
	m_AppendixILabel.SetTextColor(RGB(0,100,130));<br />
	m_AppendixILabel.SetFontName("Times New Roman");<br />
	m_AppendixILabel.SetFontSize(14);<br />
	m_AppendixILabel.SetFontBold(FALSE);<br />
	m_AppendixILabel.SetFontUnderline(FALSE);<br />
	m_AppendixILabel.ShowWindow(SW_SHOW);<br />
}<br />
<br />
void CECalAppendixIForm::OnCloseupFySelected() <br />
{<br />
	// TODO: Add your control notification handler code here<br />
	<br />
}


Everything is Free... Until You Have to Pay for it...

Platforms Windows 2000/XP Professional using Visual C++ 6.0
QuestionRe: Please Help! What would cause Member Variable problem? Pin
David Crow12-Apr-06 9:10
David Crow12-Apr-06 9:10 
AnswerRe: Please Help! What would cause Member Variable problem? Pin
Charlie Curtis12-Apr-06 9:26
Charlie Curtis12-Apr-06 9:26 
GeneralRe: Please Help! What would cause Member Variable problem? Pin
David Crow12-Apr-06 9:34
David Crow12-Apr-06 9:34 
GeneralRe: Please Help! What would cause Member Variable problem? Pin
Charlie Curtis12-Apr-06 10:10
Charlie Curtis12-Apr-06 10:10 
GeneralRe: Please Help! What would cause Member Variable problem? Pin
David Crow12-Apr-06 10:17
David Crow12-Apr-06 10:17 
QuestionProblem when Change number of arguments of MFC activeX control's exposed method Pin
Michael Tang12-Apr-06 8:48
Michael Tang12-Apr-06 8:48 
AnswerRe: Problem when Change number of arguments of MFC activeX control's exposed method Pin
Michael Tang12-Apr-06 9:42
Michael Tang12-Apr-06 9:42 
AnswerRe: Problem when Change number of arguments of MFC activeX control's exposed method Pin
prasad_som12-Apr-06 19:41
prasad_som12-Apr-06 19:41 
GeneralRe: Problem when Change number of arguments of MFC activeX control's exposed method Pin
Michael Tang13-Apr-06 4:05
Michael Tang13-Apr-06 4:05 
GeneralRe: Problem when Change number of arguments of MFC activeX control's exposed method Pin
prasad_som17-Apr-06 2:09
prasad_som17-Apr-06 2:09 
Questioncall stack not getting created Pin
inamulev12-Apr-06 8:29
inamulev12-Apr-06 8:29 
Questionimporting a .net dll into VC6 Pin
Waldermort12-Apr-06 8:23
Waldermort12-Apr-06 8:23 
AnswerRe: importing a .net dll into VC6 Pin
oshah12-Apr-06 13:16
oshah12-Apr-06 13:16 
AnswerRe: importing a .net dll into VC6 Pin
Michael Dunn12-Apr-06 15:24
sitebuilderMichael Dunn12-Apr-06 15:24 
GeneralRe: importing a .net dll into VC6 Pin
Waldermort12-Apr-06 19:59
Waldermort12-Apr-06 19:59 
QuestionCompile Error with __stdcall Pin
gmhanna12-Apr-06 8:00
gmhanna12-Apr-06 8:00 
QuestionRe: Compile Error with __stdcall Pin
David Crow12-Apr-06 8:22
David Crow12-Apr-06 8:22 

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.