Page 1 of 1

Question for Basic Script

Posted: Mon Jul 04, 2016 9:38 am
by Aselalagor
why this script not working?
error on AddressOf...

Code: Select all



 Declare Function EnumChildWindows Lib "user32" (ByVal hWndParent _
         As Long, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long

Function EnumChildProc(ByVal lhWnd As Long, ByVal lParam As Long) _
         As Long
            EnumChildProc = True
      End Function

Sub Main

   Dim lRet As Long, lParam As Long
   Dim lhWnd As Long

         lhWnd = 4590448
         lRet = EnumChildWindows(lhWnd, AddressOf  EnumChildProc, lParam)

End Sub


Re: Question for Basic Script

Posted: Wed Jul 13, 2016 8:58 am
by Oleg
It seems you can not pass the function address as parameter on this BASIC engine.