TurboPack / Orpheus

Orpheus is an award-winning UI toolkit for Embarcadero Delphi & C++Builder
Other
99 stars 36 forks source link

When statically linking a Win64 C++ application that uses some of the Orpheus UI controls you get a DEP exception #46

Closed RayVecchio closed 3 months ago

RayVecchio commented 3 months ago

The issue is in O32MouseMon.pas it should be changed to accommodate both Win32 and Win64 compilation. To fix the issue the changes required are as follow:

//rnelson changed integer to INT_PTR (the wParam should be UINT_PTR, but I )
function MessageHookProc(nCode: Integer; wParam, lParam: INT_PTR): INT_PTR; stdcall;
and
//rnelson changed integer to INT_PTR (the wParam should be UINT_PTR, but I )
function MouseHookProc(nCode: Integer; wParam, lParam: INT_PTR): INT_PTR; stdcall;
romankassebaum commented 3 months ago

Fixed.