CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: genliu777

Search: Search took 0.02 seconds.

  1. how to move around records in sqlite as the way as in CDaoRecordset of MFC??

    hi,

    i use sqlite in my project. it is good because of its capacity bigger than ACCESS. i used CDaoRecordset of MFC to handle records in ACCESS, whick is convenient to me move around records in...
  2. Re: how to order records in ACCESS by MFC objects like CDaodatabase or CDaoRecordset?

    thanks for your help! i am trying to deal with it!!!
  3. Re: how to order records in ACCESS by MFC objects like CDaodatabase or CDaoRecordset?

    in CDaoRecordset, with m_strSort member i can get the order records. but nothing changes in table! the code as follows,

    /*
    table aa: ind as the primary key
    /////////
    ind ind2
    21 111...
  4. how to order records in ACCESS by MFC objects like CDaodatabase or CDaoRecordset?

    table with primary key already set-down in ACCESS. when insert records into the table by Execute() function of cdaodatabase, to some extense, the records are not put behind the last record as wished,...
  5. Re: HELP: Why EXcute() of CDaodatabase does not work with "CREATE TABLE" sql

    "WHERE 1=2" means copying table structure without any data or record! it works well with ACCESS.


    "does not work" according to the create sql words, it should create a table in the database! but...
  6. HELP: Why EXcute() of CDaodatabase does not work with "CREATE TABLE" sql

    Using CDaodatabase and CDaoRecordset to work with Sql2000 personal.

    sql = _T("SELECT * INTO YOU FROM MY WHERE 1=2");
    db.Execute(sql);

    Excute() is doing well with copying a table, but

    ...
  7. Re: question about dynamically select table with DAO technique!

    yes it is caused by the function "Format"!!!!


    thanks VictorN!!!!!
  8. Re: question about dynamically select table with DAO technique!

    strTable.Format(_T("INSERT INTO %s %s %s VALUES %s"),tbname,field,field1,fvalue);
  9. Re: question about dynamically select table with DAO technique!

    [code]
    strTable.Format(_T("INSERT INTO %s %s %s VALUES %s"),tbname,field,field1,fvalue);
    [code]
  10. Re: question about dynamically select table with DAO technique!

    here is the call stack window!
  11. Re: question about dynamically select table with DAO technique!

    ok! i try again! wish good!

    thanks for your time with me!!!!
  12. Re: question about dynamically select table with DAO technique!

    G:\debug.JPG
  13. Re: question about dynamically select table with DAO technique!

    how to post an jpg image here!??
  14. Re: question about dynamically select table with DAO technique!

    i re-execute the dubug, and find when it reach the breakpoint : format, it stops!
  15. Re: question about dynamically select table with DAO technique!

    when dubugging, it reaches the file "output.c" and points to line 1624. and can not continue



    while (i-- && *pwch) // a yellow pointer direct here
    ...
  16. Re: question about dynamically select table with DAO technique!

    try again:


    DZH5Day day;
    ifstream infile;

    infile.open(_T("600157.day"),std::ios::binary|std::ios::in);
    CString tbname = _T("600157");
    CDaoDB db;
    try
  17. Re: question about dynamically select table with DAO technique!

    sorry for the trouble i make! this the first time i post code here. sorry again!
  18. Re: question about dynamically select table with DAO technique!

    the messagebox describes the 0x01326a41 memory referenced by "0x7857680d" can not be read. stop the program, please click "OK"; debugg the program ,please click "cancel".
  19. Re: question about dynamically select table with DAO technique!

    infile.open(_T("600157.day"),std::ios::binary|std::ios::in);
    CString tbname = _T("600157");
    CDaoDB db;
    try
    {
    db.dbOpen(lpszFile);
    long ltemp = 0; // to clear out repeated record ...
  20. Re: question about dynamically select table with DAO technique!

    because in my program with the code above, every time debugging when it reach the Execute funtion, vc2008 pop up a message box which describes somewhere in memory could not been written or read or...
  21. Re: question about dynamically select table with DAO technique!

    here is a CStingArray instance m_code, which contains string correponding

    to the table name in the Access database, and to the binary file name in some

    folder. now i use m_code to control...
  22. question about dynamically select table with DAO technique!

    an Access database with 100 table in it, all of the tale have same table fields.

    now i build a program to handle the database with DAO technique in vc++2008, and dynamically select any table and...
Results 1 to 22 of 22





Click Here to Expand Forum to Full Width

Featured