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.
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.
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.
Antonio:
Sadly enough it is a MS DOS / Clipper 16 bit app. ![]()
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
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.
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.
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