Click here to Skip to main content
15,898,945 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPrint of Directory Tree Pin
chrisKone30-Oct-06 15:37
chrisKone30-Oct-06 15:37 
AnswerRe: Print of Directory Tree Pin
chrisKone30-Oct-06 18:19
chrisKone30-Oct-06 18:19 
AnswerRe: Print of Directory Tree Pin
Hamid_RT30-Oct-06 18:38
Hamid_RT30-Oct-06 18:38 
GeneralRe: Print of Directory Tree Pin
chrisKone30-Oct-06 21:19
chrisKone30-Oct-06 21:19 
GeneralRe: Print of Directory Tree Pin
Hamid_RT31-Oct-06 8:01
Hamid_RT31-Oct-06 8:01 
GeneralRe: Print of Directory Tree Pin
David Crow31-Oct-06 3:25
David Crow31-Oct-06 3:25 
QuestionCan't find msvcr80.dll in debug version Pin
FengShang30-Oct-06 15:26
FengShang30-Oct-06 15:26 
Questionerror with inserting the record in database Pin
With_problem30-Oct-06 14:30
With_problem30-Oct-06 14:30 
I am using this code for inserting the data in msaccess database............
<br />
	m_TQuote.Open();        // addedd  for database<br />
	m_bInserting = FALSE;  // addedd for datbase<br />
    DoModal();<br />
     <br />
	//GetDlgItemText(IDC_EDIT1 ,m_MainEdit);<br />
	//GetDlgItemText(IDC_EDIT1,m_TQuote.m_ID,m_TQuote.m_DateTimeStamp,m_TQuote.m_MarketNo,m_TQuote.m_Bid,m_TQuote.m_MarketName,m_TQuote.m_Ask,m_TQuote.m_MarketState);<br />
	GetDlgItemText(IDC_EDIT1,m_TQuote.m_DateTimeStamp,);<br />
	GetDlgItemText(IDC_EDIT1,m_TQuote.m_MarketNo);<br />
	GetDlgItemText(IDC_EDIT1,m_TQuote.m_Bid);<br />
	GetDlgItemText(IDC_EDIT1,m_TQuote.m_MarketName);<br />
	GetDlgItemText(IDC_EDIT1,m_TQuote.m_Ask);<br />
	GetDlgItemText(IDC_EDIT1,m_TQuote.m_MarketState);<br />
	<br />
	HRESULT hr = 0;<br />
		if (m_bInserting)<br />
	{<br />
		hr = m_Set.Insert();   // add new row<br />
	}<br />
	else<br />
	{<br />
		hr = m_Set.SetData();  //update row<br />
	}<br />
	m_bInserting = FALSE;<br />
<br />
<br />


But i am getting this error can anybody help me to solve this problem:
Error are :
<
1): error C2664: 'int __thiscall CWnd::GetDlgItemTextA(int,class CString &) const' : cannot convert parameter 2 from 'double' to 'class CString &'
A reference that is not to 'const' cannot be bound to a non-lvalue
2): error C2664: 'int __thiscall CWnd::GetDlgItemTextA(int,class CString &) const' : cannot convert parameter 2 from 'union tagCY' to 'class CString &'
A reference that is not to 'const' cannot be bound to a non-lvalue
3): error C2664: 'int __thiscall CWnd::GetDlgItemTextA(int,class CString &) const' : cannot convert parameter 2 from 'union tagCY' to 'class CString &'
A reference that is not to 'const' cannot be bound to a non-lvalue
4): error C2664: 'int __thiscall CWnd::GetDlgItemTextA(int,class CString &) const' : cannot convert parameter 2 from 'char [51]' to 'class CString &'
A reference that is not to 'const' cannot be bound to a non-lvalue
5): error C2664: 'int __thiscall CWnd::GetDlgItemTextA(int,class CString &) const' : cannot convert parameter 2 from 'union tagCY' to 'class CString &'
A reference that is not to 'const' cannot be bound to a non-lvalue
6): error C2664: 'int __thiscall CWnd::GetDlgItemTextA(int,class CString &) const' : cannot
convert parameter 2 from 'short' to 'class CString &'
>
AnswerRe: error with inserting the record in database Pin
FengShang30-Oct-06 14:50
FengShang30-Oct-06 14:50 
GeneralRe: error with inserting the record in database Pin
With_problem30-Oct-06 14:59
With_problem30-Oct-06 14:59 
GeneralRe: error with inserting the record in database Pin
FengShang30-Oct-06 15:04
FengShang30-Oct-06 15:04 
AnswerRe: error with inserting the record in database Pin
Hamid_RT30-Oct-06 18:27
Hamid_RT30-Oct-06 18:27 
QuestionTabs, toolbars, views, and MFC... Pin
dontknowitall30-Oct-06 11:13
dontknowitall30-Oct-06 11:13 
AnswerRe: Tabs, toolbars, views, and MFC... Pin
Mark Salsbery30-Oct-06 12:08
Mark Salsbery30-Oct-06 12:08 
GeneralRe: Tabs, toolbars, views, and MFC... Pin
dontknowitall30-Oct-06 16:33
dontknowitall30-Oct-06 16:33 
Questioninputing string & int from file to array. Pin
Ramper30-Oct-06 9:43
Ramper30-Oct-06 9:43 
QuestionRe: inputing string & int from file to array. Pin
David Crow30-Oct-06 9:47
David Crow30-Oct-06 9:47 
AnswerRe: inputing string & int from file to array. Pin
Ramper30-Oct-06 9:52
Ramper30-Oct-06 9:52 
GeneralRe: inputing string & int from file to array. Pin
Zac Howland30-Oct-06 10:45
Zac Howland30-Oct-06 10:45 
QuestionRe: inputing string & int from file to array. Pin
David Crow30-May-07 9:24
David Crow30-May-07 9:24 
AnswerRe: inputing string & int from file to array. Pin
Zac Howland31-May-07 5:43
Zac Howland31-May-07 5:43 
GeneralRe: inputing string & int from file to array. Pin
David Crow31-May-07 6:00
David Crow31-May-07 6:00 
GeneralRe: inputing string &amp; int from file to array. Pin
Zac Howland31-May-07 7:44
Zac Howland31-May-07 7:44 
QuestionRe: inputing string &amp; int from file to array. Pin
David Crow31-May-07 8:42
David Crow31-May-07 8:42 
AnswerRe: inputing string &amp; int from file to array. Pin
Zac Howland31-May-07 9:07
Zac Howland31-May-07 9:07 

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.