I tried {$Mode Delphi} and that didn't work.

I'm not sure what to do with pOnReType = OnReType^; though, could you provide an example for me so I can understand the context its used in?