The serial port would not function in 64-bit. this is caused by the wrong parameters being passed. In AdPort.pas the function ComWindowProc must have the same parameters as "DefWindowProc(hWnd: HWND; Msg: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;" so, replace with "function ComWindowProc(hWindow : TApdHwnd; Msg : UINT; wParam : WPARAM; lParam : LPARAM) : LRESULT; stdcall; export;". There are probably other such instances too... I did not check...
The serial port would not function in 64-bit. this is caused by the wrong parameters being passed. In AdPort.pas the function ComWindowProc must have the same parameters as "DefWindowProc(hWnd: HWND; Msg: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;" so, replace with "function ComWindowProc(hWindow : TApdHwnd; Msg : UINT; wParam : WPARAM; lParam : LPARAM) : LRESULT; stdcall; export;". There are probably other such instances too... I did not check...