I'm trying to reorganize a Delphi 5 project in Delphi XE, to do this, I need to fix some errors in a module called BrowseDr. The error I get is this
[DCC Error] BrowseDr.pas(1033): E2033 Types of actual and formal var parameters
must be identical
line 1033: SHGetMalloc(FShellMalloc);
"MyShlObj":
function SHGetMalloc(var ppMalloc: IMalloc): HResult; stdcall;
Now the IMalloc used in the FShellMalloc declaration is obtained from OLE2.IMalloc
and the one used in "MyShlObj" is from ActiveX.IMalloc.
Is it possible to change one of them? If so, is this recommended?
source
share