Re: Edita not working in Vista
- Posted by CChris <christian.cuvier at agr?culture?gouv.fr> Sep 20, 2007
- 556 views
Pete Lomax wrote: > > DB James wrote: > > > > Pete, > > > > Edita is now working normally. Getting rid of the Nexus Radio which was > > not running properly (running in memory, but no window or button on the > > task bar) caused Edita to return to visibility and has full functionality > > as far as I now know. > > > > Don't understand what was happening, but Nexus is an Eu application. > > I can take a guess at what happened. At startup easinst.ew enumerates all > windows and > sends them WM_GETTEXTLENGTH and WM_GETTEXT messages, looking for window titles > beginning > with "Edita". If the process is dead then Edita locks up. There may be a trick > here > to use SendMessageTimeout rather than the current plain SendMessage, never > tried that. > Should be pretty easy to write a test window that plays dead for say 30 > seconds, something > else I have never deliberately done. > Why use SendMessage() at all? Since you expect Edita main windows to be top level and of some window class you may invent for this purpose (don't you?), use FindWindow(lpEditaClassName,NULL). No need to deal with window text, which ANSI/Unicode issues might make more confuse. And the process being dead is not a problem, since it is not queried at all. CChris > Regards, > Pete