New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find way to update versions in About dialog #4
Comments
modified: Tidy2/VersionAndAbout.rc modified: Tidy2/resource.h Added a resource ID to each control in the About dialog so the text can be changed during dialog setup... Also updated the versions, but this should be the last time for this since these two files are in MS Unicode (UTF-16), with a BOM so git treats them as binary files, with 100% rewrites each time.
All changes now pushed to branch Now each control in the About dialog has an ID, so the handle for each can be obtained, and the control text updated to show both the The libtidy versions presented a small wrinkle, in that this data is returned as ASCII/UTF-8, while the About dialog is in MS Unicode, UTF-16, but this was handled by using the WIN32 API I have added this dialog text setting code into Have now tested this in my fork of So this version |
One way would be to use cmake
configure_file
to copy a file, or files, substituting version values generated in cmake, from say aversion.txt
file...The problem is the
Tidy2/VersionAndAbout.rc
, and its associatedresource.h
are encoded in MS Unicode (UTF-16), and it seemscmake
does not support this character encoding. And searching around it seems it never will, despite its extensive use by MS Windows...Additionally, since these files are in
UTF-16
, with aBOM
, github treats the files as binary, thus to update the version strings manually each time would cause full file re-writes in the repository... also a no-no!But that does not stop the
Tidy2.dll
generating and setting these dialog text strings, during the creation of the dialog...Have created a
set_vers
branch to explore this forTidy2.dll
, and forked notepad-plus-plus, myhnppf.bat
, and built with MSVC 14.x64, in anext1
branch, to be able to use MSVC to Debug thePlugins
load and setup... and installed npp 64-bit release 7.5.3, myhnpp-7.5.3.bat
, to test the newTidy2.dll
... quite a learning curve...Seems to be working. Still to push these changes...
The text was updated successfully, but these errors were encountered: