Fix startup error on Windows XP caused by SHCreateItemFromParsingName#9412
Fix startup error on Windows XP caused by SHCreateItemFromParsingName#9412mere-human wants to merge 1 commit intonotepad-plus-plus:masterfrom
Conversation
Load shell32.dll and resolve the necessary symbol at runtime. This makes it possible to run the app on Windows XP. Address discussion comments in issue notepad-plus-plus#9378
|
I don't think it is necessary to go this way, if we drop XP support anyway. But another question arises here. If we drop XP support for one of the most interesting base functions of the software (saving files), then perhaps it would be good not to start Notepad++ under XP at all. |
|
If some critical things no longer work under XP, an alert should pop up as to inform which latest version working under this system and the program should be closed (not to cause damage). |
For now, only some places are affected like the dialog from File > Save Session. |
This would be ideal, but the problem here is, that in order to show such a message box under XP, we have to assure, that no post-XP function is used without a To load all post-XP functions at run time with
I think, all of the load/save file dialogs will follow sooner or later, and over the long run, it will not be easy to maintain and test 3 versions of each dialog every time. Since the new style file dialogs have some advantages, it would be better and more future-save to drop XP like suggested here #9378 (comment) and focus on a single implementation of each load/save dialog. |
|
I open separate bug #9423 because support for older systems appears in other bugs and it is worth having a clear position on this matter. |
+1 |
|
It took time to download & install XP SP3 and configure VirtualBox to make file transfer working from host to client. The test code contains : But since 2) is revert, due to symbol A B The result with B works fine, Notepad++ is launched without any problem, whereas the result with A crashed. Conclusion: If both A & B worked, I would include this PR and keep making Notepad++ running under XP, because this compact PR (little effort) can make these prehistoric people happy. |
If only I could believe that this is a FINAL decision. :-)
Remember, it was mere-human that started this whole thing, what with those fancy new dialogs. |
I plan to go on 🙂 |
Load shell32.dll and resolve the necessary symbol at runtime.
This makes it possible to run the app on Windows XP.
Address discussion comments in issue #9378