Hi Calvin,
'Declare integer FindWindow in Win32api string string'
If that's the actual declaration, you are missing a comma between string and string. Your declaration tells VFP that FindWindow has one parameter that is of type string, and you call this parameter string. Since you only pass the window class, but no window title with one parameter, Windows can't find anything. That's why you get 0 if you pass only one parameter. YOu get a syntax error if you pass two parameters, because VFP exepects this function to have only one parameter.
Christof
--
Christof