hi,
I have a win32 application that plays some hashing tricks with HWND while running on win98 and uses the fact that on win98 HWND is always 16bit.
This application is crashing on wine configured as win98 because HWND is something bigger than 16bit on wine.
Now Can I Check from inside my application code, whether the application is running on linux or win98 If yes then I might be able to avoid those hashing tricks and solve the crash
Regards kks
__________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com
Why can't you just avoid the hashing tricks entirely? That sounds like it might break on W2K/XP as well.
On Wed, 2003-04-30 at 10:06, KK singh wrote:
hi,
I have a win32 application that plays some hashing tricks with HWND while running on win98 and uses the fact that on win98 HWND is always 16bit.
This application is crashing on wine configured as win98 because HWND is something bigger than 16bit on wine.
Now Can I Check from inside my application code, whether the application is running on linux or win98 If yes then I might be able to avoid those hashing tricks and solve the crash
Regards kks
Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com
"KK" == KK singh kk_singh@yahoo.com writes:
KK> hi, I have a win32 application that plays some hashing tricks with KK> HWND while running on win98 and uses the fact that on win98 HWND is KK> always 16bit.
KK> This application is crashing on wine configured as win98 because KK> HWND is something bigger than 16bit on wine.
KK> Now Can I Check from inside my application code, whether the KK> application is running on linux or win98 If yes then I might be able KK> to avoid those hashing tricks and solve the crash
First question: - Can we change Wine behaviour with regard to the HWND handling? That would be best in m.h.O. - If not, check for the wine specific DLL entries e.g. in ntdll
Hope this helps
KK singh wrote:
hi,
I have a win32 application that plays some hashing tricks with HWND while running on win98 and uses the fact that on win98 HWND is always 16bit.
This application is crashing on wine configured as win98 because HWND is something bigger than 16bit on wine.
Now Can I Check from inside my application code, whether the application is running on linux or win98 If yes then I might be able to avoid those hashing tricks and solve the crash
I think the last time the subject came up, the consensus was that the existance of HKLM/Programs/Wine is the best way to check whether you are running on Wine.
A different matter (and one which I am not qualified to attest to) is whether it is smart for wine to be 100% win98 compatible in that regard, and whether it is smart on your program's side to do those tricks.
Regards kks
Hope this helps.
Shachar