Re: ADOX - Import type library into Delphi 2007



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
.



Relevant Pages

  • RE: User cant remove icons from desktop
    ... desktop it appears again after the user logs on to the server again. ... If the user uses roaming profile, from the symptom, the cached user profile ... users noticed that deleted icons reappear. ...
    (microsoft.public.windows.server.sbs)
  • Re: Cant see logon window (and a lot more)
    ... being a domain controller, a dhcp server, and a print server for three or ... If you clicked on the start button you would see the icons from the ... It is also the primary domain controller. ... >> paging file had moved itself back to the C drive and was once again ...
    (microsoft.public.windows.server.general)
  • Re: Cant see logon window (and a lot more)
    ... > being a domain controller, a dhcp server, and a print server for three or ... If you clicked on the start button you would see the icons from ... It is also the primary domain controller. ... >>> the paging file to the D drive. ...
    (microsoft.public.windows.server.general)
  • Re: Desktop icons in locked-down TS desktop
    ... > I set up a 2000 member server as a TS in a 2003 domain using several KB articles and I have a question about Folder Redirection. ... > Using the GPMC, I set up a GPO to lock down the TS desktop that non-admin users see, and under the [User Configuration\Windows ... but all users inherit the icons on the All Users desktop. ...
    (microsoft.public.windows.terminal_services)
  • Re: Cant see logon window (and a lot more)
    ... What are you running on this server that would use up disk space ... If you clicked on the start button you would see the icons from the ... It is also the primary domain controller. ... > paging file had moved itself back to the C drive and was once again ...
    (microsoft.public.windows.server.general)