Re: ADOX set-up



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




.



Relevant Pages

  • Re: vba6.dll
    ... > I don't ever remember having to install that particular file. ... > Wonder what the chap is using that requires that file? ... It's a component of the IDE. ... Mike ...
    (microsoft.public.vb.general.discussion)
  • Re: SP2 - Do I need it?
    ... Mike. ... > but is the trade off worth the hassle of the install? ... Just look at al the fixes included in SP2 as well as the fact we used our ... >>> home pc to any other computer, via the internet or otherwise. ...
    (microsoft.public.windowsxp.general)
  • Re: Computing for Outlook Express in VB.
    ... Pete, don't mind Mike Williams and me, we have a good history together. ... >therefore be saying that you think that he should *not* install a good ... I truly believe that an antivirus program is superfluous. ... For those who have solid firewalls up, run software in a restricted security ...
    (comp.lang.basic.visual.misc)
  • Re: MOSS 2007 - Failed to create sample data
    ... Mike, the only time I received that error was when I was trying to ... i'm trying to install 2007 as a single server. ... Boolean secure, TokenImpersonationLevel impersonationLevel, Int32 timeout) ... idleTimeout, TimeSpan periodicRestartTime) ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Upgrade pirate XP pro with OEMCD XP pro
    ... > Thanks Mike, that's pretty clear. ... your clean OEM CD install. ... >>> corporate ones that generates the bad product ID so it won't upgrade to ...
    (microsoft.public.windowsxp.setup_deployment)