Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Update > KB950749 is breaking legacy DAO code

Reply
Thread Tools Display Modes

KB950749 is breaking legacy DAO code

 
 
codewiz51
Guest
Posts: n/a

 
      05-15-2008
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:atabasePtr m_CurrDB;
DAO::_TableDefPtr tdfDestTable;
DAO::_FieldPtr fldNew;
m_DBE.CoCreateInstance(__uuidof(DAO:BEngine));
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
 
Reply With Quote
 
 
 
 
PA Bear [MS MVP]
Guest
Posts: n/a

 
      05-15-2008
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/def...3&gprid=522131

• CA:
http://support.microsoft.com/oas/def...3&gprid=522131

• UK:
http://support.microsoft.com/oas/def...3&gprid=522131

• AU:
http://support.microsoft.com/oas/def...3&gprid=522131

• Other: http://support.microsoft.com/oas/def...spx?gprid=1173 | select
Windows XP | select Windows XP Service Pack 3
--
~Robear Dyer (PA Bear)
MS MVP-IE, Mail, Security, Windows Desktop Experience - since 2002
AumHa VSOP & Admin http://aumha.net
DTS-L http://dts-l.net/

codewiz51 wrote:
> 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:atabasePtr m_CurrDB;
> DAO::_TableDefPtr tdfDestTable;
> DAO::_FieldPtr fldNew;
> m_DBE.CoCreateInstance(__uuidof(DAO:BEngine));
> 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


 
Reply With Quote
 
MowGreen [MVP]
Guest
Posts: n/a

 
      05-15-2008
cf: http://support.microsoft.com/kb/950749

> For home users, no-charge support is available by calling 1-866-PCSAFETY in the United States and
> Canada or by contacting your local Microsoft subsidiary
> <snip>
> You can also obtain instant access to unlimited no-charge e-mail support or to unlimited individual
> chat support by visiting the following Microsoft Web site:
> http://support.microsoft.com/oas/def...spx?&prid=7552 (http://support.microsoft.com/oas/def...spx?&prid=7552)
> For enterprise customers, support for security updates is available through your usual support
> contacts.


Please report this issue.

MowGreen [MVP 2003-2008]
===============
*-343-* FDNY
Never Forgotten
===============



codewiz51 wrote:

> 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:atabasePtr m_CurrDB;
> DAO::_TableDefPtr tdfDestTable;
> DAO::_FieldPtr fldNew;
> m_DBE.CoCreateInstance(__uuidof(DAO:BEngine));
> 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

 
Reply With Quote
 
LeeG
Guest
Posts: n/a

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

Thanx
Lee

"codewiz51" wrote:

> 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:atabasePtr m_CurrDB;
> DAO::_TableDefPtr tdfDestTable;
> DAO::_FieldPtr fldNew;
> m_DBE.CoCreateInstance(__uuidof(DAO:BEngine));
> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
KB950749 update fails Joe935 Windows Update 6 05-16-2008 06:06 AM
Update KB950749 and Error Code Dx80070005 RoyBon Windows Update 1 05-15-2008 05:28 PM
Viasta sound interface breaks legacy code Gilbert Baron Windows Vista General Discussion 0 08-05-2007 02:14 AM
It is NOT SP2 that is breaking old 16-bit apps... David Cook Windows Update 7 10-20-2004 11:55 PM
Re: sound is breaking up Andrew Z Carpenter [Newsgroup Groupie] Windows Update 0 07-01-2003 08:53 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59