CompuServe Messages

#WINAPI.TXT Error

    16-Oct-91 16:57:56
Sb: #WINAPI.TXT Error
Fm: Rick Sands/OR 70274,103
To: ALL
Just a FYI. The function below is incorrect, although it works in cases where you know both the Class Name and Window Caption of the Window you are looking for: Declare Function FindWindow Lib "User" (lpClassName As Any, lpWindowName As Any) As Integer It should be: Declare Function FindWindow Lib "User" (BYVAL lpClassName As Any, BYVAL lpWindowName As Any) As Integer With the second declaration, if you don't know the Class Name, you can pass 0& and get any class window with the correct caption. – Ricks There is 1 Reply.