🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ADOX_tlb.h: BCB6 Follow-up

#556
From: Viatcheslav V. Vassiliev
Date: Wed, 16 Nov 2005 07:46
56 lines
3284 bytes
Write support@oledbdirect.com and I will send you simple sample that creates 
Access database.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + 
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"poojo hackma" <poojo.com/mail> �������/�������� � �������� ���������: 
news:437a1e95$1@newsgroups.borland.com...
> 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: <437ae3a3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!novia!amsnews01.chello.com!amsnews11.chello.com!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!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> <437a1e95$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
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
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> <437a1e95$1@newsgroups.borland.com>
Subject: Re: ADOX_tlb.h: BCB6 Follow-up
Date: Wed, 16 Nov 2005 10:46:24 +0300
Lines: 58
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
NNTP-Posting-Host: 85.93.138.132
Message-ID: <437ae3a3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1132127139 85.93.138.132 (15 Nov 2005 23:45:39 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!novia!amsnews01.chello.com!amsnews11.chello.com!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail