Re: ADOX - Import type library into Delphi 2007
- From: Pontus Berg <pontus@xxxxxxxxxxxxxxxxx>
- Date: Mon, 19 May 2008 23:47:22 +0200
Vitali Kalinin skrev:
I asked the same question more than two years ago, and give it a new shot here as I still have got no answers I have been able to use.
Probably it is since nobody see any problem in importing TypeLibrary
I want to modify an Access database at runtime and this takes ADOX (not only ADO but also ADOX so you can f.ex. access the structure of the data and not only the data itself).
Importing a type library is very well described at many informative sites. Take this brilliant example:
http://delphi.about.com/od/database/l/aa072401a.htm
Now; How do I do that in Delphi 2007? It's totally different and renaming is not one of the options.
Could you explain what yours problem is? What stops you from usage of ADOX_TLB.pas created for you by import?
It could of course be so that Mr Noob (me!) is not really familiar with importing types, so this is really basic but I'd be happy to be guided even to an easy solution here :-)
I do the import and use the refactoring to update the classnames as in the description. The class is then in the Uses section but it doesn't work and then I am lost. Nothing shows up on the tools palette.
The guide implies that the renaming of classes happens in the middle of the process but they aren't available for me to rename before I sit there with a piece of source.
I simply can't reference anything from this piece.
The ADOX_TLB.pas contains errors:
// Type Lib: C:\Program Files\Common Files\System\ado\msadox.dll (1)
// LIBID: {00000600-0000-0010-8000-00AA006D2EA4}
// LCID: 0
// Helpfile: C:\Program Files\Common Files\System\ado\ado270.chm
// HelpString: Microsoft ADO Ext. 2.8 for DDL and Security
// DepndLst:
// (1) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
// Errors:
// Hint: TypeInfo 'Property' changed to 'Property_'
// Hint: TypeInfo 'Procedure' changed to 'Procedure_'
// Hint: Parameter 'Object' of _DynaCollection.Append changed to 'Object_'
// Hint: Symbol 'Type' renamed to 'type_'
// Hint: Parameter 'Type' of Columns.Append changed to 'Type_'
// Hint: Symbol 'Type' renamed to 'type_'
// Hint: Symbol 'Type' renamed to 'type_'
// Hint: Symbol 'Type' renamed to 'type_'
// Hint: Parameter 'Type' of Keys.Append changed to 'Type_'
// Hint: Symbol 'Type' renamed to 'type_'
// Hint: Symbol 'Type' renamed to 'type_'
// Error creating palette bitmap of (TTable) : Server C:\Program Files\Common Files\System\ado\msadox.dll contains no icons
// Error creating palette bitmap of (TColumn) : Server C:\Program Files\Common Files\System\ado\msadox.dll contains no icons
// Error creating palette bitmap of (TIndex) : Server C:\Program Files\Common Files\System\ado\msadox.dll contains no icons
// Error creating palette bitmap of (TKey) : Server C:\Program Files\Common Files\System\ado\msadox.dll contains no icons
// Error creating palette bitmap of (TGroup) : Server C:\Program Files\Common Files\System\ado\msadox.dll contains no icons
// Error creating palette bitmap of (TUser) : Server C:\Program Files\Common Files\System\ado\msadox.dll contains no icons
// Error creating palette bitmap of (TCatalog) : Server C:\Program Files\Common Files\System\ado\msadox.dll contains no icons
/Pontus
.
- Follow-Ups:
- Re: ADOX - Import type library into Delphi 2007
- From: Vitali Kalinin
- Re: ADOX - Import type library into Delphi 2007
- References:
- ADOX - Import type library into Delphi 2007
- From: Pontus Berg
- Re: ADOX - Import type library into Delphi 2007
- From: Vitali Kalinin
- ADOX - Import type library into Delphi 2007
- Prev by Date: Re: ADOX - Import type library into Delphi 2007
- Next by Date: Re: ADOX - Import type library into Delphi 2007
- Previous by thread: Re: ADOX - Import type library into Delphi 2007
- Next by thread: Re: ADOX - Import type library into Delphi 2007
- Index(es):
Relevant Pages
|