Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Findwindow API problem ?
Message
From
09/11/1998 14:22:00
Rob Gordon
Xon Digital Communications Ltd.
Dartmouth, Nova Scotia, Canada
 
 
General information
Forum:
Visual Basic
Category:
ActiveX controls
Miscellaneous
Thread ID:
00155549
Message ID:
00155863
Views:
31
>>I need the Win32 API that do the similar things as Findwindow
>>in WIN NT-4 ?
>
>The FindWindow() API call works the same in both Win9x and WinNT.

Sorry to intrude , but I'm having a problem getting this function to work at all (in Win95).

EG> Declaration

Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

dim MyAppWindowName as string
MyAppWindowName="MyApp Window Title"
MyHandle=FindWindow(0,MyAppWindowName)

This never works .. although it works fine in VFP

I have also tried ..
MyHandle=FindWindow("",MyAppWindowName)

or ..
MyAppWindowName="MyApp Window Title"+chr$(0)
MyHandle=FindWindow(0,MyAppWindowName)

etc etc .. never any luck .. the window DOES exist .

HELP !
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform