KDJ wrote: ↑Thu Apr 20, 2017 8:39 pm
New version of PdfView for HMG 3.4.4.
It doesn't work with earlier HMG versions.
Very good to make mention in the posted message.
SumatraPDF as library 32-bit:
SumatraPDF_lib_32bit.zip
Nice !
Excellent work, Krzysztof !
I liked that you left in "Settings" the option "Open PDF at once" (GRID event ON CHANGE) and other options as well. Availability in a correct and objective manner in my POV.
I would like to add how directives could be done for those who use the IDE and/or want to still use the batch file for compilation and still maintain the settings that you include in the HBP (project file).
I have noted that you use directives in the hbp file very often. But this when is being used the IDE for compiling, is completely lost. You can check the Build.log file and see in it (not recognize these directives.
I clarify this because there are some colleagues who use the compilation (as well as me) and could find some difficulty.
Harbour and more precisely the IDE allows you to do the compiler directives through the HBC file.
I read about each one of them and I even tested and removed each one of them but I think maybe they are not necessary because (I believe) Harbour defaults these directives:
Code: Select all
#harbour options:
-a
-m
-n
-v
-w3
#hbmk2 options:
#-compr
I know this last line, you let it as comment, just for who want to compress compiling
All this is still new to me (hbc use), if you believe so needed, could you please explain why these "harbour options" are used for in your project ?
I have done (please revise it if it's correct) the following changes:
- I have created a sub-folder named lib at current project's folder and placed your libSumatraPDF.a file lib.
- For PdfView.hbc:
Code: Select all
libpaths=lib
libs=SumatraPDF
prgflags=-w3
#compr=min
Please note this is the right way to be used when wish to compress it or using max flag option.
prgflags can be added (with space character between each "harbour options").
- For PdfView.hbp:
- For PdfViewBuild.cmd:
Code: Select all
call C:\hmg.3.4.4\build.bat PdfView.hbp PdfView.hbc
Please note that PdfView.hbc was added. So it's going to work by IDE and by batch file in building process.
- And renamed a typo in name of SumatraPDFLibBuild32.cmd.
It also good to say that HMGPATH is needing for change folder name according with our HMG installation.
I only wished to add my comments, in order to let this project and example workable for both: batch file and IDE.
I am in doubt if these directives are so necessary but be that any case, these changes that I indicate may be useful for the future.
However I want to clarify that your batch files files work very well.
Given the other way of compilation in Harbour and consequently in HMG.
Thank you very much Krzysztof for this brillant work.
Dzięki!