Click here to Skip to main content
15,909,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to highlight a Check box if no caption Pin
vikas amin6-Nov-06 18:07
vikas amin6-Nov-06 18:07 
AnswerRe: How to highlight a Check box if no caption Pin
Hamid_RT6-Nov-06 20:18
Hamid_RT6-Nov-06 20:18 
GeneralRe: How to highlight a Check box if no caption Pin
vikas amin6-Nov-06 21:28
vikas amin6-Nov-06 21:28 
GeneralRe: How to highlight a Check box if no caption Pin
Hamid_RT7-Nov-06 4:31
Hamid_RT7-Nov-06 4:31 
AnswerRe: How to highlight a Check box if no caption Pin
Niklas L6-Nov-06 20:54
Niklas L6-Nov-06 20:54 
GeneralRe: How to highlight a Check box if no caption Pin
Niklas L6-Nov-06 21:33
Niklas L6-Nov-06 21:33 
AnswerRe: How to highlight a Check box if no caption Pin
Blake Miller7-Nov-06 3:48
Blake Miller7-Nov-06 3:48 
QuestionInserting Data in database by Atl consumer wizard [modified] Pin
With_problem6-Nov-06 16:26
With_problem6-Nov-06 16:26 
I am using this code to insert data in msaccess database,but rateher then saving the record it will save in database some otehr values:
like:
ID DateTimeStamp MarketNo Bid MarketName Ask MarketState
-858993459 0:00:00 0 -368934881474191.0324 -368934881474191.0324 -13108
-858993458 0:00:00 1342 -368934881474191.0324 -368934881474191.0324 -13108
-858993457 0:00:00 1342 -368934881474191.0324 -368934881474191.0324 -13108
-858993456 0:00:00 1342 -368934881474191.0324 -368934881474191.0324 -13108
-858993455 0:00:00 1342 -368934881474191.0324 -368934881474191.0324 -13108

How to solve this problem,I have made comment line before the database code by which i am getting this problem.
<br />
void CArielProjectVer2Dlg::OnPriceChangeArielapictrl1(LPCTSTR SessionId, LPCTSTR RequestId, short MarketNo, LPCTSTR Market,<br />
													  LPCTSTR Bid, short BidDirection, LPCTSTR Ask, short AskDirection, <br />
													  LPCTSTR High, LPCTSTR Low, short MarketState, LPCTSTR Timestamp) <br />
{<br />
	// TODO: Add your control notification handler code here<br />
	SessID=SessionId;<br />
	CurrentRequestId=RequestId;<br />
	CString MarketSt,a,b,c,d;<br />
<br />
	txtMarket = Market;<br />
     <br />
	a.Format("%d",MarketNo);<br />
	b.Format("%c",BidDirection);<br />
	c.Format("%c",AskDirection);<br />
	d.Format("%d",MarketState);<br />
    <br />
    m_MainEdit=m_MainEdit + "<Price Change>" +"    " + SessionId + "\t" + RequestId +"\t"+ a ; <br />
	m_MainEdit=m_MainEdit + "\t"+ Market + "\t   " + Bid + "\t  " + b + "  \t"+ Ask + "\t" +c +"\t "+ High + "\t";<br />
	m_MainEdit=m_MainEdit + Low + "\t" + d + "   "+ "\t" + Timestamp + "\r\n";<br />
    <br />
	UpdateData(FALSE);<br />
	iLineCount=m_EditCtrl.GetLineCount();<br />
	m_EditCtrl.LineScroll(iLineCount);<br />
    <br />
     //:confused:  CODE FOR INSERT DATA IN DATABASE:confused:<br />
     // m_TQuote is object of table T_Quote (CTQuote m_TQuote) <br />
<br />
	m_TQuote.MoveLast();<br />
	int nCount = m_TQuote.m_ID;<br />
	nCount++;<br />
<br />
	m_TQuote.m_ID = nCount;<br />
<br />
	HRESULT hResult = m_TQuote.Insert(); //specify the insert accessor<br />
	if(FAILED(hResult))<br />
	{<br />
		AfxMessageBox(_T("Error inserting the record"));<br />
		return;<br />
	}<br />



-- modified at 22:44 Monday 6th November, 2006
Questionwrap/hide string references Pin
Benlahrech .Dj6-Nov-06 13:39
Benlahrech .Dj6-Nov-06 13:39 
AnswerRe: wrap/hide string references Pin
Jörgen Sigvardsson6-Nov-06 14:32
Jörgen Sigvardsson6-Nov-06 14:32 
AnswerRe: wrap/hide string references Pin
Michael Dunn6-Nov-06 16:07
sitebuilderMichael Dunn6-Nov-06 16:07 
AnswerRe: wrap/hide string references Pin
Benlahrech .Dj7-Nov-06 11:31
Benlahrech .Dj7-Nov-06 11:31 
QuestionCAsyncSocket - Client receives some messages but not others Pin
realius2226-Nov-06 11:24
realius2226-Nov-06 11:24 
AnswerRe: CAsyncSocket - Client receives some messages but not others Pin
Mark Salsbery6-Nov-06 12:33
Mark Salsbery6-Nov-06 12:33 
AnswerRe: CAsyncSocket - Client receives some messages but not others Pin
iserik6-Nov-06 18:06
iserik6-Nov-06 18:06 
QuestionActiveX Controls [modified] Pin
Stober6-Nov-06 11:21
Stober6-Nov-06 11:21 
QuestionMAPILogon with Groupwise Pin
yyf6-Nov-06 10:54
yyf6-Nov-06 10:54 
GeneralRe: MAPILogon with Groupwise Pin
yyf7-Nov-06 2:21
yyf7-Nov-06 2:21 
QuestionUse exisiting printing methods for Printers in Print Preview Pin
skywalkerking6-Nov-06 10:06
skywalkerking6-Nov-06 10:06 
AnswerRe: Use exisiting printing methods for Printers in Print Preview" Pin
skywalkerking6-Nov-06 10:26
skywalkerking6-Nov-06 10:26 
QuestionLinking DLL's Pin
joeller6-Nov-06 8:57
professionaljoeller6-Nov-06 8:57 
AnswerRe: Linking DLL's Pin
Mark Salsbery6-Nov-06 12:45
Mark Salsbery6-Nov-06 12:45 
GeneralRe: Linking DLL's Pin
joeller7-Nov-06 3:42
professionaljoeller7-Nov-06 3:42 
GeneralRe: Linking DLL's Pin
Mark Salsbery7-Nov-06 5:27
Mark Salsbery7-Nov-06 5:27 
GeneralRe: Linking DLL's Pin
joeller7-Nov-06 8:08
professionaljoeller7-Nov-06 8:08 

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.