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.