INCLUDE <clearwin.ins>
INCLUDE <win32api.ins>
INCLUDE <win32prm.ins>
::
STDCALL SENDMESSAGE 'SendMessageA' (VAL,VAL,VAL,VAL) : INTEGER(7)
INTEGER(7) lparam, wparam, iResult
INTEGER msg
INTEGER, PARAMETER :: WM_LBUTTONDOWN = Z'201'
INTEGER, PARAMETER :: MK_LBUTTON = Z'1'
::
msg = WM_LBUTTONDOWN
wparam = MK_LBUTTON
lparam = 10 + ISHFT(10, 16)
iResult = SendMessage ( GR_HANDLE, msg, wparam, lparam )
::
Compiling file: DrawOnScreen.f90
D:\Bgo_7.2\Replo\DrawOnScreen.F90(43) : error 904 - Return type is expected.
Found (VAL,VAL,VAL,VAL):INTEGER(7)
D:\Bgo_7.2\Replo\DrawOnScreen.F90(46) : error 1011 - WM_LBUTTONDOWN has already been declared with the PARAMETER attribute
D:\Bgo_7.2\Replo\DrawOnScreen.F90(46) : warning 520 - WM_LBUTTONDOWN has been declared more than once with the same type (see line 2420)
D:\Bgo_7.2\Replo\DrawOnScreen.F90(47) : error 1011 - MK_LBUTTON has already been declared with the PARAMETER attribute
D:\Bgo_7.2\Replo\DrawOnScreen.F90(47) : warning 520 - MK_LBUTTON has been declared more than once with the same type (see line 1286)
D:\Bgo_7.2\Replo\DrawOnScreen.F90(1226) : error 645 - SENDMESSAGE is a SUBROUTINE so cannot be used as a FUNCTION
Compilation failed.
next trial with:
STDCALL SENDMESSAGE 'SendMessageA' (VAL,VAL,VAL,VAL) : INTEGER(7)
INTEGER(7) lparam, wparam, iResult
INTEGER msg
!!! INTEGER, PARAMETER :: WM_LBUTTONDOWN = Z'201'
!!! INTEGER, PARAMETER :: MK_LBUTTON = Z'1'
::
Compiling file: DrawOnScreen.f90
D:\Bgo_7.2\Replo\DrawOnScreen.F90(43) : error 904 - Return type is expected.
Found (VAL,VAL,VAL,VAL):INTEGER(7)
D:\Bgo_7.2\Replo\DrawOnScreen.F90(1226) : error 645 - SENDMESSAGE is a SUBROUTINE so cannot be used as a FUNCTION
Compilation failed.