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

C / C++ / MFC

 
GeneralRe: "Cannot execute program" Pin
toxcct10-Oct-06 23:53
toxcct10-Oct-06 23:53 
GeneralRe: "Cannot execute program" Pin
kiranin10-Oct-06 23:56
kiranin10-Oct-06 23:56 
GeneralRe: "Cannot execute program" Pin
toxcct11-Oct-06 0:02
toxcct11-Oct-06 0:02 
GeneralRe: "Cannot execute program" Pin
kiranin11-Oct-06 0:07
kiranin11-Oct-06 0:07 
AnswerRe: "Cannot execute program" Pin
toxcct10-Oct-06 22:05
toxcct10-Oct-06 22:05 
QuestionRe: "Cannot execute program" Pin
David Crow11-Oct-06 7:53
David Crow11-Oct-06 7:53 
GeneralRe: "Cannot execute program" Pin
kiranin11-Oct-06 9:26
kiranin11-Oct-06 9:26 
Questiondatabase problem Pin
With_problem10-Oct-06 21:52
With_problem10-Oct-06 21:52 
I am using this code to store data in msaccess database but when i try to open the table it is not tthere
,and while opening the mdb file it will always ask for conversion if i click the convert database then also no table is present.
1)What should i chage in this code to open in msAccess2003 Can anybody help me to solve my problem?

2)For storing i have not done any odbc/oledb (DSN)connection is that needed.If yes how to do the connection?
3)Is this code is right?

<br />
#ifdef _DEBUG<br />
afxDump<<"before opening tha datbase"<<"\n";<br />
#endif<br />
db.Create("C:\\ODLDATA.mdb");<br />
db.Open("C:\\ODLDATA.mdb");<br />
#ifdef _DEBUG<br />
afxDump<<"after database is open"<<"\n";<br />
#endif<br />
//db.Open("C:\\ODLDATA.mdb");<br />
// start variable from here<br />
COleVariant var;<br />
var.ChangeType(VT_BSTR,NULL);<br />
<br />
CString ID,datetimestamp,marketno,bid,ask,marketstate,marketname,Sql;<br />
<br />
recset.Open(AFX_DAO_USE_DEFAULT_TYPE,"SELECT * FROM T_Quote",NULL);<br />
// ADD DATA IN DATABASE<br />
Sql = "SELECT * FROM T_Quote";<br />
recset.AddNew();<br />
recset.SetFieldValue("ID","RequestId");<br />
recset.SetFieldValue("DateTimeStamp","Timestamp");<br />
recset.SetFieldValue("MarketNo","a");<br />
recset.SetFieldValue("Bid","Bid");<br />
recset.SetFieldValue("Ask","Ask");<br />
recset.SetFieldValue("MarketName","Market");<br />
recset.SetFieldValue("MarketState","d");<br />
recset.Update();<br />
recset.Close();<br />
db.Close();<br />
<br />
//database code end here<br />
<br />

AnswerRe: database problem Pin
David Crow11-Oct-06 7:56
David Crow11-Oct-06 7:56 
Questionchanging color of text in a row in CListCtrl Pin
Kiran Pinjala10-Oct-06 21:03
Kiran Pinjala10-Oct-06 21:03 
AnswerRe: changing color of text in a row in CListCtrl Pin
Hamid_RT10-Oct-06 21:26
Hamid_RT10-Oct-06 21:26 
AnswerRe: changing color of text in a row in CListCtrl Pin
Rajesh R Subramanian10-Oct-06 21:26
professionalRajesh R Subramanian10-Oct-06 21:26 
Questionping a remote server Pin
Anik3310-Oct-06 20:53
Anik3310-Oct-06 20:53 
AnswerRe: ping a remote server Pin
David Crow11-Oct-06 7:59
David Crow11-Oct-06 7:59 
GeneralRe: ping a remote server Pin
Galatei11-Oct-06 23:18
Galatei11-Oct-06 23:18 
Questionhow can get words form screen Pin
zh.w10-Oct-06 20:35
zh.w10-Oct-06 20:35 
AnswerRe: how can get words form screen Pin
Hamid_RT10-Oct-06 20:44
Hamid_RT10-Oct-06 20:44 
GeneralRe: how can get words form screen [modified] Pin
zh.w10-Oct-06 21:04
zh.w10-Oct-06 21:04 
GeneralRe: how can get words form screen Pin
Hamid_RT10-Oct-06 21:26
Hamid_RT10-Oct-06 21:26 
GeneralRe: how can get words form screen Pin
zh.w10-Oct-06 21:33
zh.w10-Oct-06 21:33 
GeneralRe: how can get words form screen Pin
Mark Salsbery11-Oct-06 7:03
Mark Salsbery11-Oct-06 7:03 
AnswerRe: how can get words form screen Pin
David Crow11-Oct-06 8:02
David Crow11-Oct-06 8:02 
Questionstandard Include Directories in Vc++ VS2005 Pin
mpk197910-Oct-06 20:33
mpk197910-Oct-06 20:33 
AnswerRe: standard Include Directories in Vc++ VS2005 Pin
fefe.wyx10-Oct-06 22:36
fefe.wyx10-Oct-06 22:36 
QuestionSplitter windows within CTabCtrl Pin
joshiprashant10-Oct-06 20:31
joshiprashant10-Oct-06 20:31 

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.