Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FindWindow
Message
 
To
03/01/1999 18:16:15
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00172288
Message ID:
00172344
Views:
34
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
Previous
Reply
Map
View

Click here to load this message in the networking platform