Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EOleException in Delphi 7 ADO

Status
Not open for further replies.

acabrera

Programmer
Jan 22, 2004
44
US
I am revising our Delphi 5 applications to use ADO instead of BDE. I am also converting our Delphi 5 ADO applications to run on Delphi 7. In a particular Delphi 7 ADO application, I was unsuccessful and had the following message:

Project X raised exception class EOleException with
message 'An unknown error has occurred.'

I traced the source of the error and pinpointed the statement 'Inherited CreateParams(Params) in the following procedure:

procedure TNavpageForm.CreateParams(var Params: TCreateParams);
begin
Inherited CreateParams(Params);
with Params do
begin
Style := WS_CHILD or WS_CLIPSIBLINGS or WS_CLIPCHILDREN;
Align := alClient;
end;
end;

Above procedure did not cause a problem in Delphi 5. Are there any related updates needed for Delphi 7? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top