Re: Automating linking dBase into Access

From: Viatcheslav V. Vassiliev (support_at_oledbdirect.com)
Date: 01/04/04


Date: Sun, 4 Jan 2004 11:17:26 +0300

For collections you should use

Properties->Item[WideString("...")]->Value

Item is default property. For different collections it could be Item, Items
or repeat collection name, as Properties->Property[WideString("...")].

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

"Robert Emmons" <remmons@aurigen.com> ???????/???????? ? ???????? ?????????:
news:tc3evvsrfredibohd5398p731jte40aitp@4ax.com...
> On Sat, 3 Jan 2004 11:35:07 +0300, "Viatcheslav V. Vassiliev"
> <support@oledbdirect.com> wrote:
>
> > Various suggestions for relinking tables to an MSAccess database
>
>
> Thanks for your help. I have made some progress, but I have not been
> successful yet. These lines seem to compile ok:
>
> Adox_tlb::TCOM_Catalog cat = CoCatalog::Create();
> cat->Create(WideString(
> "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=HitData"));
>
> Adox_tlb::TCOM_Table tbl = CoTable::Create();
> tbl->ParentCatalog = cat;
>
>
>
> But, I get an error on the following line:
>
> tbl->Properties[WideString("Jet OLEDB:Create Link")]->Value =
> True;
>
> Error:
>
> [C++ Error] MaintenanceFrm.cpp(85): E2034 Cannot convert 'WideString'
> to 'int'
>
>
> I would appreciate any futher suggestions.
>
>



Relevant Pages

  • Re: Automating linking dBase into Access
    ... I have made some progress, ... successful yet. ... These lines seem to compile ok: ... to 'int' ...
    (borland.public.delphi.database.ado)
  • Re: Problem calling C# dll in Delphi 2006 VCL.Net
    ... As Vassiliev said, you have to compile your C# library as .Net 1.1, and be ... aware that namespace "using System.Collections.Generic" isn't supported with ... problem when you call C# library from your Delphi .Net application ...
    (borland.public.delphi.thirdpartytools.general)