KB950749 is breaking legacy DAO code

Discussion in 'Windows Update' started by codewiz51, May 15, 2008.

  1. codewiz51

    codewiz51 Guest

    After KB950749 was installed, we have some legacy DAO code that is failing.
    We have found that we cannot create and append fields to tabledefs from our
    C++ code. I have not tried the equivalent in VBA. I know that DAO is
    obsolete, but we did not see the need to upgrade legacy applications.

    I have extracted some working code that is in production. After KB950749 is
    installed, the following code fails:

    #import <C:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll>
    rename("EOF", "EndOfFile")
    CComPtr<DAO::_DBEngine> m_DBE;
    DAO::DatabasePtr m_CurrDB;
    DAO::_TableDefPtr tdfDestTable;
    DAO::_FieldPtr fldNew;
    m_DBE.CoCreateInstance(__uuidof(DAO::DBEngine));
    m_CurrDB = m_DBE->CreateDatabase(_bstr_t(m_szMDFFile),
    _bstr_t(DAO::dbLangGeneral),
    _variant_t(DAO::dbVersion40));
    tdfDestTable = m_CurrDB->CreateTableDef(_T("MyTable"));
    // DAO error 3421 occurs here after KB is installed
    fldNew = tdfDestTable->CreateField(_T("MyField"), DAO::dbText, 12);

    I have a complete console application documented at
    http://codewiz51.blogspot.com. (This is not an advertisement for my blog,
    the app is just too long for inclusion in this message.)

    If this is not posted to the correct forum, please let me know where I might
    post the problem.

    Thanks,
    code
     
    codewiz51, May 15, 2008
    #1
    1. Advertisements

  2. Free unlimited installation and compatibility support is available for
    Windows XP, but only for Service Pack 3 (SP3), until 14 Apr-09. Chat and
    e-mail support is available only in the United States and Canada.

    • US:
    http://support.microsoft.com/oas/default.aspx?ln=en-us&prid=11273&gprid=522131

    • CA:
    http://support.microsoft.com/oas/default.aspx?ln=en-ca&prid=11273&gprid=522131

    • UK:
    http://support.microsoft.com/oas/default.aspx?ln=en-gb&prid=11273&gprid=522131

    • AU:
    http://support.microsoft.com/oas/default.aspx?ln=en-au&prid=11273&gprid=522131

    • Other: http://support.microsoft.com/oas/default.aspx?gprid=1173 | select
    Windows XP | select Windows XP Service Pack 3
     
    PA Bear [MS MVP], May 15, 2008
    #2
    1. Advertisements

  3. cf: http://support.microsoft.com/kb/950749
    Please report this issue.

    MowGreen [MVP 2003-2008]
    ===============
    *-343-* FDNY
    Never Forgotten
    ===============
     
    MowGreen [MVP], May 15, 2008
    #3
  4. codewiz51

    LeeG Guest

    Code - can you tell me if compacting your database has an effect on the
    failure?

    Thanx
    Lee
     
    LeeG, May 16, 2008
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.