Dat klopt, dus ik heb Declare vervangen door Declare Ptfsafe zoals hieronder op 2 plaatsen in de frmMain-code en het werkt weer:
Private Declare PtrSafe-functie FindWindow Lib "user32" ook bekend als "FindWindowA" _ (ByVal lpClassName als tekenreeks, ByVal lpWindowName als tekenreeks) Zolang
Private Declare PtrSafe Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Ik wist dat er compatibiliteitsproblemen waren vanwege de versies, maar daar had ik niet over nagedacht.