I have an app that uses winrar (unrar64.dll). In delphi 10.3 the code runs fine, but running it under Delphi 11, it throws an access violation on this line
RARSetCallback(RARArchiveInstance, HandleRarCallBack, Integer(Self));
This function is in the dll header file as
TRARSetCallback = procedure(hArcData: THandle; Callback: TRARUnRarCallback; UserData: longint); stdcall;
The second param is a function defines as such
TRARUnRarCallBack = function(msg: Cardinal; UserData, P1, P2: longint): integer; stdcall;
I assume the data types may have changed from 10.3 to 11. but cannot figure out where the issues lie. Thank you