Hello,
In activex.pp, OleTranslateAccelerator is defined as:
function OleTranslateAccelerator(lpFrame:IOleInPlaceFrame; lpFrameInfo:TOleInPlaceFrameInfo; lpmsg:LPMSG):WINOLEAPI;stdcall;external 'ole32.dll' name 'OleTranslateAccelerator';
Note the definition of the second parameter:
lpFrameInfo:TOleInPlaceFrameInfo;
That parameter should be a pointer to a TOleInPlaceFrameInfo not a TOleInPlaceFrameInfo
The C definition is:
HRESULT OleTranslateAccelerator(
[in] LPOLEINPLACEFRAME lpFrame,
[in] LPOLEINPLACEFRAMEINFO lpFrameInfo,
[in] LPMSG lpmsg
);
Showing that the second parameter is a pointer to an OLEINPLACEFRAMEINFO
HTH.