Dll Project with ADO



I create a dll project under Delphi . I write a exports function like this
function ReportOut(Handle:HWND):DWORD;stdcall;
begin
ShowMessage('Begin Test !');
Report.QReport:=TQReport.CreateParented(Handle);
Report.QReport.Preview;
ShowMessage('End Test !');
Result:=0;
end;
exports ReportOut;
and I call this function under Visual C++.
at first I create a window and use this window's HWND as parameter .
It works.
but if I add a ADO controls such as ADOConnection or ADOQuery to
TQReport(a QuickReport controls) It cann't work when I call this
function,It says there is a Unhandled exception . I don't know how the
ADO controls works . I just guess if the ADO controls can not use 'heap'
when the VC program call this function .
Could you help me ,thanks!
.



Relevant Pages

  • Re: Dll Project with ADO
    ... exports ReportOut; ... at first I create a window and use this window's HWND as parameter. ... ADO controls works. ... I just guess if the ADO controls can not use 'heap' ...
    (borland.public.delphi.database.ado)
  • Are there any changes in the ADO source that comes with Delphi 2007
    ... Are there any changes or improvements done to the ADO controls in Delphi 2007? ... I currently have Delphi 7 and BDS 2006. ... If you have Delphi 2007 you can compare the ADODB.pas and other similar files with an earlier Delphi version you have. ...
    (borland.public.delphi.database.ado)
  • Any code changes to ADO in Delphi 2007 for Win32?
    ... Are there any improvements done to the ADO controls in Delphi 2007? ... Can someone who has D 2007 please compare the ADO db source files with an earlier version>= D7? ...
    (borland.public.delphi.non-technical)