CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    C++, Database, ODBC

    Hi all,

    void CDatabaseDlg::OnButtonCtables()
    {
    CDatabase db;

    try
    {
    db.OpenEx(NULL);
    }

    catch(CDBException *e)
    {
    AfxMessageBox(e->m_strError);
    return;

    ...
    }

    Now my question: How can I retrieve the names of all tables in the choosen database???

    Thanks

    Jürgen (mailto:[email protected])


  2. #2
    Join Date
    May 1999
    Location
    Piacenza, ITALIA
    Posts
    30

    Re: C++, Database, ODBC

    There is a MFC-Sample called "catalog" shipped with VC++. Look there, espacially for the "CTables"-Recordset

    Regards, Marco


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured