Solved

TADOConnection EOleException

Posted on 2004-04-29
5
1,076 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

778 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