🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #555

ADOX_tlb.h: BCB6 Follow-up

#555
From: poojo hackma
Date: Tue, 15 Nov 2005 17:45
40 lines
2710 bytes
I've narrowed the problem down to these two issues in the ADOX_tlb.h file:

First, if I use either of these techniques:

  cat.Create((BSTR)cConnector, (tagVARIANT*)ADOConnection1);
    or
  cat->Create((BSTR)cConnector, (tagVARIANT*)ADOConnection1);

...I get a *runtime* error (EAccessViolation) in ADOX_tlb.h from Line 3434:

Line 3431:  template <class T> HRESULT __fastcall
Line 3432:  TCOM_CatalogT<T>::Create(BSTR ConnectString/*[in]*/, VARIANT* 
Connection/*[out,retval]*/)
Line 3433:  {
Line 3434:    return (*this)->Create(ConnectString, Connection);
Line 3435:  }

The EAccessViolation message is: "Access violation at address 77124BA4 in 
module 'OLEAUT32.DLL'. Read of address 00133000'."


Next, if I try to use this technique:

  cat.Create((BSTR)cConnector);

...I get a *compile time* error in ADOX_tlb.h on Line 3441:

Line 3437:  template <class T> VARIANT __fastcall
Line 3438:  TCOM_CatalogT<T>::Create(BSTR ConnectString/*[in]*/)
Line 3439:  {
Line 3440:    VARIANT Connection;
Line 3441:    OLECHECK(this->Create(, (VARIANT*)&Connection));
Line 3442:    return Connection;
Line 3443:  }

The compiler says E2188 Expression syntax.


Does this shed any light on what might be wrong?  What else could I provide 
to help?
Technical Details
Message-ID: <437a1e95$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!feeder.xsnews.nl!83.128.0.11.MISMATCH!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
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> <43791822$1@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> <43791822$1@newsgroups.borland.com>
Subject: ADOX_tlb.h: BCB6 Follow-up
Date: Tue, 15 Nov 2005 11:45:36 -0600
Lines: 42
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-2, 11/15/2005), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 12.45.133.147
Message-ID: <437a1e95$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1132076693 12.45.133.147 (15 Nov 2005 09:44:53 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!feeder.xsnews.nl!83.128.0.11.MISMATCH!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail