Article View: borland.public.cppbuilder.database.ado
Article #553Re: BCB6 Follow-up
From: poojo hackma
Date: Mon, 14 Nov 2005 23:05
Date: Mon, 14 Nov 2005 23:05
37 lines
2511 bytes
2511 bytes
New error message:
HRCHECK:
'this->Create(ConnectString, (VARIANT*)&Connection)':
No such interface supported
@ C:\Program Files\Borland\CBuilder6\Imports\ADOX_tlb.h/487
Press [Y]es to terminate, [N]o to continue and [C]ancel to Debug
This message is also triggered when I attempt to step over the Create()
method, shown in Line 84 below:
74: if (FileExists(OpenDialog1->FileName) == false) {
75: OpenDialog1->Execute();
76: }
77: if (FileExists(OpenDialog1->FileName) == false) {
78: try { // create new database
79: TCOM_Catalog cat = CoCatalog::Create();
80: char cConnector[MAXPATH];
81: strcpy(cConnector, "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=");
82: strcat(cConnector, OpenDialog1->FileName.c_str());
83: cat = CoCatalog::Create();
84: cat->Create((BSTR)cConnector);
85: cat.Release();
86: ADOConnection1->ConnectionString = cConnector;
87:
where:
OpenDialog1->FileName.c_str() =
"C:\\Documents and Settings\\user1\\My Documents\\
My Projects\\Project1\\database1.mdb"
and
cConnector = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Documents and
Settings\\user1\\My Documents\\My Projects\\Project1\\database1.mdb\0\0..."
Also, is "cat" a pointer or a value? How do I know when to use "cat->" and
when to use "cat."?
Technical Details
Message-ID:
<43791822$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4374c751$1@newsgroups.borland.com> <4374d7fa$1@newsgroups.borland.com> <4374fc8b@newsgroups.borland.com> <43750df0$1@newsgroups.borland.com> <4375b348$1@newsgroups.borland.com> <4378b969@newsgroups.borland.com> <43790b1d@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,fd44f1fbb79ff20c X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "poojo hackma" <poojo.com/mail> Newsgroups: borland.public.cppbuilder.database.ado References: <4374c751$1@newsgroups.borland.com> <4374d7fa$1@newsgroups.borland.com> <4374fc8b@newsgroups.borland.com> <43750df0$1@newsgroups.borland.com> <4375b348$1@newsgroups.borland.com> <4378b969@newsgroups.borland.com> <43790b1d@newsgroups.borland.com> Subject: Re: BCB6 Follow-up Date: Mon, 14 Nov 2005 17:05:48 -0600 Lines: 39 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Response X-Antivirus: avast! (VPS 0546-0, 11/14/2005), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 12.45.133.147 Message-ID: <43791822$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1132009506 12.45.133.147 (14 Nov 2005 15:05:06 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail