|
-
May 19th, 2000, 10:59 PM
#1
Thread Starter
New Member
OK, here is my dilema:
I am just trying a simple app to find the hWnd of a window, say Minesweeper. I have looked at the 'reference' guide you all have been talking about, and it worked for giving me the basics. The only problem is, the API call will not do what it is told. I have to following declaration statement:
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
and the following code in my form_load() sub:
Blah = Module1.FindWindow(Clng(0),"Minesweeper")
Supposedly that is what the 'reference' site said, the only problem is, it does not work, at all. It always returns a 0. Yes, I do have Minesweeper up, and yes, it is copied directly from the 'reference' site. Any help would be greatly appreciated.
Ender, a new user...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|