![]() Then I did NOT close photo viewer and pressed "show" in our application AGAIN. I switched back to the default (Windows Photo Viewer). Free The latest photo editor from ACDSee. On this machine Picasa was the default viewer. Download Free Photo Viewer for Windows now from Softonic: 100 safe and virus free. ShellExecuteEx DOES NOT return an error code!Īs you said, in the case where it does NOT work, ShellExecuteEx has an return code (hInstApp) of 42 (ok!) and hProcess is NULL! (The only new process started was dllhost.exe.)īut, I tested the whole thing on another windows 7 machine. I do not know where the problem is with the default image viewer on windows 7 and ShellExecuteEx. This DOES NOT HAPPEN on windows 7, when there is another image viewer, for example, Picasa Photo Viewer, or Evince windows version or JPEGView. WaitForSingeObject returns WAIT_FAILED and GetLastError() says: INVALID_HANDLE. ![]() If ShellExecuteEx is called there for a jpg or tif file and the machine has only the default windows image / photo viewer, an error occurs. It is working without problems, only on windows-7-machines with images and the default image viewer we have problems. In our source code we call ShellExecuteEx with open.Īfter this - in order to wait for the termination of the called programm - we call WaitForSingleObject with infinite. We have a desktop application running on Windows XP, Windows Vista, Windows 7 and so on (it is written in cobol, but I think in this case it is not relevant).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |