Getting a window handle from a 16bit Clipper program.

Getting a window handle from a 16bit Clipper program.

Postby HunterEC » Thu Dec 04, 2008 10:01 pm

How can I get the window handle for a 16 bit program that calls a FWH one ? Bearing in mind that there can be multiple instances of the 16bit program.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Postby Antonio Linares » Thu Dec 04, 2008 11:43 pm

Gustavo,

Is it a MsDos or a Windows 16 bits application ?

If it is a Windows one, then you can save its window handle as a number to a file in the harddisk.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby HunterEC » Fri Dec 05, 2008 6:59 am

Antonio:

Sadly enough it is a MS DOS / Clipper 16 bit app. :cry:
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Postby James Bott » Fri Dec 05, 2008 4:00 pm

Hunter,

Have you thought about trying to compile your Clipper app with (x)Harbour? I mean just Harbour, not FW. It might compile with no changes needed, or very few. It would still be a MSDOS app, but then you have access to all the Harbour functions. However, I am not sure if the functions you need to find the window handle are Harbour functions or FW functions.

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby HunterEC » Sat Dec 06, 2008 9:30 am

James:

Thank you for your suggestion. In the mid to long term I'll try it, it's a huge health app that has to be tested thoroughly before deployment (any mistake can cause from intoxications to a death !). In the meanwhile I'm searching a short term solution, maybe somebody has a C routine which can be linked with Clipper. Again, thank you.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Postby Antonio Linares » Sat Dec 06, 2008 10:07 am

Gustavo,

Windows does not provide a way to access a MsDos window handle.

But maybe there is already a workaround. We should google for it.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby HunterEC » Sat Dec 06, 2008 11:40 am

Antonio:

Is there a way that when the user double clicks on this 16bit MS DOS app the caption be made unique ? For example:

1st time : App 001
2nd time: App 002
nth time : App 00n

Thank you
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Postby Antonio Linares » Sat Dec 06, 2008 11:43 am

Gustavo,

Please have a look at this Microsoft article:

http://support.microsoft.com/kb/110701
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 81 guests