> Hi! > > I have a problem with the FindWindowA function, which is included in user32. > dll. I'm expecting a window handle from this function, but all I get is a > zero. Some other functions work as expected, like GetForegroundWindow, > ShowWindow, PostMessageA for example. Any ideas? See the attached file "Get_ > Handle.vee". (I use Windows 2000 and Agilent VEE 7.03). > > <<Get_Handle.vee>> > > Regards > Per-Henrik Lfstrm > > --- > You are currently subscribed to vrf as: g.nied@gn-software.de > To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". > To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". > To send messages to this mailing list, email "vrf@agilent.com". > If you need help with the mailing list send a message to "owner-vrf@it. > lists.it.agilent.com". > Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
> Hi! > > I have a problem with the FindWindowA function, which is included in user32. > dll. I'm expecting a window handle from this function, but all I get is a > zero. Some other functions work as expected, like GetForegroundWindow, > ShowWindow, PostMessageA for example. Any ideas? See the attached file "Get_ > Handle.vee". (I use Windows 2000 and Agilent VEE 7.03). > > <<Get_Handle.vee>> > > Regards > Per-Henrik Lfstrm > > --- > You are currently subscribed to vrf as: g.nied@gn-software.de > To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". > To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". > To send messages to this mailing list, email "vrf@agilent.com". > If you need help with the mailing list send a message to "owner-vrf@it. > lists.it.agilent.com". > Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
> Hi! > > I have a problem with the FindWindowA function, which is included in user32. > dll. I'm expecting a window handle from this function, but all I get is a > zero. Some other functions work as expected, like GetForegroundWindow, > ShowWindow, PostMessageA for example. Any ideas? See the attached file "Get_ > Handle.vee". (I use Windows 2000 and Agilent VEE 7.03). > > <<Get_Handle.vee>> > > Regards > Per-Henrik Lfstrm > > --- > You are currently subscribed to vrf as: g.nied@gn-software.de > To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". > To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". > To send messages to this mailing list, email "vrf@agilent.com". > If you need help with the mailing list send a message to "owner-vrf@it. > lists.it.agilent.com". > Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
> Hi! > > I have a problem with the FindWindowA function, which is included in user32. > dll. I'm expecting a window handle from this function, but all I get is a > zero. Some other functions work as expected, like GetForegroundWindow, > ShowWindow, PostMessageA for example. Any ideas? See the attached file "Get_ > Handle.vee". (I use Windows 2000 and Agilent VEE 7.03). > > <<Get_Handle.vee>> > > Regards > Per-Henrik Lfstrm > > --- > You are currently subscribed to vrf as: g.nied@gn-software.de > To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". > To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". > To send messages to this mailing list, email "vrf@agilent.com". > If you need help with the mailing list send a message to "owner-vrf@it. > lists.it.agilent.com". > Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
> Hi! > > I have a problem with the FindWindowA function, which is included in user32. > dll. I'm expecting a window handle from this function, but all I get is a > zero. Some other functions work as expected, like GetForegroundWindow, > ShowWindow, PostMessageA for example. Any ideas? See the attached file "Get_ > Handle.vee". (I use Windows 2000 and Agilent VEE 7.03). > > <<Get_Handle.vee>> > > Regards > Per-Henrik Lfstrm > > --- > You are currently subscribed to vrf as: g.nied@gn-software.de > To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". > To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". > To send messages to this mailing list, email "vrf@agilent.com". > If you need help with the mailing list send a message to "owner-vrf@it. > lists.it.agilent.com". > Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
> Hi! > > I have a problem with the FindWindowA function, which is included in user32. > dll. I'm expecting a window handle from this function, but all I get is a > zero. Some other functions work as expected, like GetForegroundWindow, > ShowWindow, PostMessageA for example. Any ideas? See the attached file "Get_ > Handle.vee". (I use Windows 2000 and Agilent VEE 7.03). > > <<Get_Handle.vee>> > > Regards > Per-Henrik Lfstrm > > --- > You are currently subscribed to vrf as: g.nied@gn-software.de > To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". > To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". > To send messages to this mailing list, email "vrf@agilent.com". > If you need help with the mailing list send a message to "owner-vrf@it. > lists.it.agilent.com". > Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
you mixed up the parameters:
int __stdcall FindWindowA(char *pClass, int x);
correct would be:
long _stdcall FindWindowA (int x, char* lpWindowName)
with x being 0 you find the first window that matches the name lpWindowName
best regards,
Georg
Georg Nied Software-Development Hansestr. 7 51149 Cologne Germany
Tel: +49 (2203) 9770915 Fax: +49 (2203) 9770924 E-Mail: info@gn-software.de
-------- Original Message --------
Subject: [vrf] Getting the Window handle (28-Sep-2005 12:06)
From: per-henrik.lofstrom@ericsson.com
To: vrf@agilent.com
> Hi!
>
> I have a problem with the FindWindowA function, which is included in user32.
> dll. I'm expecting a window handle from this function, but all I get is a
> zero. Some other functions work as expected, like GetForegroundWindow,
> ShowWindow, PostMessageA for example. Any ideas? See the attached file "Get_
> Handle.vee". (I use Windows 2000 and Agilent VEE 7.03).
>
> <<Get_Handle.vee>>
>
> Regards
> Per-Henrik Lfstrm
>
> ---
> You are currently subscribed to vrf as: g.nied@gn-software.de
> To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
> To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
> To send messages to this mailing list, email "vrf@agilent.com".
> If you need help with the mailing list send a message to "owner-vrf@it.
> lists.it.agilent.com".
> Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
To: per-henrik.lofstrom@ericsson.com
vrf@agilent.com
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".