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

C / C++ / MFC

 
AnswerRe: How can I respond to a splitter bar move? Pin
led mike12-Oct-07 10:41
led mike12-Oct-07 10:41 
QuestionWhy i crash on call the function wcscpy_s ??? ( what wrong with my code ?) Pin
Yanshof12-Oct-07 7:37
Yanshof12-Oct-07 7:37 
AnswerRe: Why i crash on call the function wcscpy_s ??? ( what wrong with my code ?) Pin
Mark Salsbery12-Oct-07 7:51
Mark Salsbery12-Oct-07 7:51 
AnswerRe: Why i crash on call the function wcscpy_s ??? ( what wrong with my code ?) Pin
led mike12-Oct-07 7:51
led mike12-Oct-07 7:51 
GeneralRe: Why i crash on call the function wcscpy_s ??? ( what wrong with my code ?) Pin
Mark Salsbery12-Oct-07 7:55
Mark Salsbery12-Oct-07 7:55 
QuestionEnableTheming(TRUE) Pin
bob1697212-Oct-07 4:47
bob1697212-Oct-07 4:47 
QuestionVisual Styles and Toolbar Pin
bob1697212-Oct-07 3:31
bob1697212-Oct-07 3:31 
Questiona problem about stackoverflow Pin
nibabug12-Oct-07 3:29
nibabug12-Oct-07 3:29 
void CSerialRecieveDlg::OnBtnAutosend()
{
// TODO: Add your control notification handler code here
if(!m_ctrlMSCommCOM1.GetPortOpen())
AfxMessageBox("please open the port!");
else
{
CCreateName Dlg;
CString TB_Name;
CString mstr;
if(Dlg.DoModal()==IDOK)
{
TB_Name=Dlg.m_TableName;
}

m_pRecordset->Close();

//// create a new table in SQL

mstr.Format("IF NOT EXISTS (SELECT * FROM sysobjects WHERE name = '");
mstr+=TB_Name;
mstr+="') CREATE TABLE ";
mstr+=TB_Name;
mstr+=" (ID INT,FangWei TEXT,FuYang TEXT,QingXie TEXT)";



try
{
m_pRecordset->Open(mstr.AllocSysString theApp.m_pConnection.GetInterfacePtr(),
adOpenDynamic,
adLockOptimistic,
adCmdText);

}

catch(_com_error *e)
{
AfxMessageBox(e->ErrorMessage());

}



SetTimer(1,500,NULL);

}
}

when debug to the end, appear an error about "stackoverflow"
what is the problem??


wuhuaiji

QuestionRe: a problem about stackoverflow Pin
David Crow12-Oct-07 3:44
David Crow12-Oct-07 3:44 
AnswerRe: a problem about stackoverflow Pin
nibabug12-Oct-07 3:51
nibabug12-Oct-07 3:51 
GeneralRe: a problem about stackoverflow Pin
David Crow12-Oct-07 3:56
David Crow12-Oct-07 3:56 
GeneralRe: a problem about stackoverflow Pin
toxcct12-Oct-07 4:36
toxcct12-Oct-07 4:36 
QuestionRe: a problem about stackoverflow Pin
David Crow12-Oct-07 4:43
David Crow12-Oct-07 4:43 
AnswerRe: a problem about stackoverflow Pin
toxcct12-Oct-07 4:47
toxcct12-Oct-07 4:47 
AnswerRe: a problem about stackoverflow Pin
nibabug12-Oct-07 4:11
nibabug12-Oct-07 4:11 
GeneralRe: a problem about stackoverflow Pin
David Crow12-Oct-07 4:32
David Crow12-Oct-07 4:32 
GeneralRe: a problem about stackoverflow Pin
Mike Dimmick12-Oct-07 6:10
Mike Dimmick12-Oct-07 6:10 
GeneralRe: a problem about stackoverflow Pin
nibabug12-Oct-07 15:24
nibabug12-Oct-07 15:24 
AnswerRe: a problem about stackoverflow Pin
Jonathan [Darka]12-Oct-07 3:44
professionalJonathan [Darka]12-Oct-07 3:44 
QuestionMonitor hard drive light via a C++ program in Windows XP Pin
isikorsky9112-Oct-07 3:22
isikorsky9112-Oct-07 3:22 
QuestionRe: Monitor hard drive light via a C++ program in Windows XP Pin
David Crow12-Oct-07 3:43
David Crow12-Oct-07 3:43 
AnswerRe: Monitor hard drive light via a C++ program in Windows XP Pin
isikorsky9112-Oct-07 3:48
isikorsky9112-Oct-07 3:48 
GeneralRe: Monitor hard drive light via a C++ program in Windows XP Pin
David Crow12-Oct-07 3:54
David Crow12-Oct-07 3:54 
GeneralRe: Monitor hard drive light via a C++ program in Windows XP Pin
isikorsky9112-Oct-07 5:16
isikorsky9112-Oct-07 5:16 
GeneralRe: Monitor hard drive light via a C++ program in Windows XP Pin
David Crow12-Oct-07 5:24
David Crow12-Oct-07 5:24 

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.