lcddalmolin / delphimaps

Automatically exported from code.google.com/p/delphimaps
0 stars 0 forks source link

v1.03 Error installing on Delphi 2010 #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, I've downloaded version 1.03

There is an error while compiling at this unit:
DelphiMaps.Browser.ExternalContainer.pas

Please correct this procedure at line "fExternalObj := T.Create;":
//
constructor TExternalContainer<T>.Create(const HostedBrowser: TWebBrowser);
begin
  inherited;
  fExternalObj := T.Create;
end;
//

Compilation results:
[Error] DelphiMaps.Browser.ExternalContainer.pas(51): E2010 Incompatible types: 
'IDispatch' and 'T'

Original issue reported on code.google.com by brunodia...@gmail.com on 17 Jan 2013 at 8:09

GoogleCodeExporter commented 8 years ago
Add IDispatch To T:
TExternalContainer<T: TAutoIntfObject, IDispatch, constructor> = 
class(TNulWBContainer, IDocHostUIHandler, IOleClientSite)
and change 
Result := Self.fExternalObj as T;
to
Result := T(Self.fExternalObj);

Original comment by Tilo.Hof...@gmail.com on 21 Mar 2013 at 12:53