Solved

TADOConnection EOleException

Posted on 2004-04-29
5
1,056 Views
Last Modified: 2011-09-20
I’m trying to connect to Microsoft SQL 8.0 from Delphi 7 using a TADOConnection object.  When I pass a command-line parameter to the application I get this error.

Project boats.exe raised exception class EOleException with message '%1
could not be found'

0
Comment
Question by:paul_kilday
5 Comments
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 10952316
it seems a syntax error in the parameter passing...

How do you pass this %1 ?

You can also test your parameter from ide choosing Parameters from Run tab and writing the parameter in parameter box....
0
 

Author Comment

by:paul_kilday
ID: 10952647
sorry, but I found the problem
I was using ParamStr(0), it sould have been ParamStr(1).
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 13323173
PAQed with points refunded (50)

modulo
Community Support Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now