Re: ADOX set-up
- From: Pontus Berg <pontus@xxxxxxxxxxxxxxxxx>
- Date: Tue, 21 Nov 2006 23:22:05 +0100
Many thanks Mike,
I must stress that you are still pointing in a direction which makes it impossible for me follow as the 2006 IDE is what I have in front of me.
I would imagine that you start by doing:
"Component" -> "Import Component" and selecting "Import a Type Library"
I pick "Microsoft ADO Ext. 2.8 for DLL and Security (2.x)"
It's now I get lost; there is no way to rename any of the Class Names - they are visible, but greyed out.
.... and this is where I am lost! A unit is show with 3300 lines of code which is the djungle I am in when the compass broke down ...
/Pontus
mIKE skrev:
Pontus:.
Here's a slighly enhanced version of the message I posted here on January 3, 2006. Though I was using Delphi 5, you might find some of it useful.
I've seen a lot of messages about using ADOX with Delphi 5, and since I had
trouble resolving the differences between the conflicting information I've
encountered, I thought I'd present what seems to have worked for me and ask
for corrections. I've searched the web using clues like these: ADOX INSTALL
ADOX TYPELIB
To install the type library into the D5 IDE:
Project | Import Type Library
then select: Microsoft ADO Ext. 2.x for DLL and Security (2.x)
Change the object names from their defaults to these
(note that, contrary to lots of info on the web,
TKey and TCatalog do not get changed.
Specifically, the info at this link:
http://delphi.about.com/od/database/l/aa072401a.htm
is wrong about these 2 items, IMO.)
ADOXTable
TADOXColumn
TADOXIndex
TKey
TADOXGroup
TADOXUser
TCatalog
Click Install
Select the tab for Install into new package and provide the following:
Filename: c:\program files\borland\delphi5\Lib\adox.dpk
Description: ADOX ADO extensions (or whatever you like)
Click OK
You'll get the confirmation dialog:
Package adox.bpl will be built then installed. Continue?
Click Yes.
Close the window whose title is "Package - adox.dpk"
You'll get a confirmation dialog:
Save changes to project adox?
I don't know if it makes any difference if you save the changes, but I do it
anyway.
Then I make sure to include ADOX_TLB in my Uses clause.
Anybody care to correct, clarify, or embellish?
mIKE
- Follow-Ups:
- Re: ADOX set-up
- From: Andy Stephenson
- Re: ADOX set-up
- Prev by Date: ADOQuery in thread hangs
- Next by Date: Re: ADOQuery in thread hangs
- Previous by thread: ADOQuery in thread hangs
- Next by thread: Re: ADOX set-up
- Index(es):
Relevant Pages
|