Search found 126 matches

by KDJ
Sat Apr 22, 2017 7:38 pm
Forum: PDF Generation
Topic: PDF Viewer DLL?
Replies: 102
Views: 3021

Re: PDF Viewer DLL?

Pablo

I divided the project into two files:
- PdfView.prg - with Harbour functions,
- PdfView_C.c - with C functions.
How it compile using HMG IDE?

Test_source.zip
(10.07 KiB) Downloaded 4 times
by KDJ
Sat Apr 22, 2017 1:36 pm
Forum: PDF Generation
Topic: PDF Viewer DLL?
Replies: 102
Views: 3021

Re: PDF Viewer DLL?

OK, Pablo. Check whether this will be good:

PdfView_source.zip
(12.9 KiB) Downloaded 7 times

However I do not understand why IDE changes .hbp file content.
It also changes .rc content.
And how to create library (eg. libSumatraPDF.a) via IDE?
by KDJ
Fri Apr 21, 2017 7:55 pm
Forum: PDF Generation
Topic: PDF Viewer DLL?
Replies: 102
Views: 3021

Re: PDF Viewer DLL?

Hi Pablo

I do not use HMG IDE.
For compiling I use .cmd (.bat) and .hbp files.
In .hbp you can place all options for compiler and linker, so .hbc file is unnecessary.
And you can place libSumatraPDF.a library in HMGdirectory\lib.
by KDJ
Thu Apr 20, 2017 8:39 pm
Forum: PDF Generation
Topic: PDF Viewer DLL?
Replies: 102
Views: 3021

Re: PDF Viewer DLL?

New version of PdfView for HMG 3.4.4.
It doesn't work with earlier HMG versions.

PdfView.exe 32-bit:
PdfView_exe_32bit.zip
(1.47 MiB) Downloaded 23 times

SumatraPDF as library 32-bit:
SumatraPDF_lib_32bit.zip
(4.43 KiB) Downloaded 20 times

Source code:
PdfView_source.zip
(12.74 KiB) Downloaded 22 times
by KDJ
Sun Apr 02, 2017 3:40 pm
Forum: PDF Generation
Topic: PDF Viewer DLL?
Replies: 102
Views: 3021

Re: PDF Viewer DLL?

Thank you very much gentelmen for testing the program.
by KDJ
Sun Apr 02, 2017 3:26 pm
Forum: HMG General Help
Topic: How to link external library
Replies: 24
Views: 572

Re: How to link external library

RPC What you need, is hbnf library. All functions of hbnf library are described here: https://harbour.github.io/doc/hbnf.html Also in Harbour source: ...\contrib\hbnf\doc\en\ For text files the functions are renamed: FT_INSERT() -> ft_FInsert() FT_USE() -> ft_FUse() FT_WRITELN() -> ft_FWriteLn() .....
by KDJ
Sat Apr 01, 2017 5:51 pm
Forum: HMG Unicode version
Topic: HMG 3.4.4
Replies: 40
Views: 1822

Re: HMG 3.4.4

Rathinagiri

Can you update Harbour x64 to latest version?
by KDJ
Sat Apr 01, 2017 5:00 pm
Forum: PDF Generation
Topic: PDF Viewer DLL?
Replies: 102
Views: 3021

Re: PDF Viewer DLL?

Serge Needed is a test on Windows-10, when focus is set in Sumatra panel. Page numbering at right bottom is flickering heavily (PdfViewTimer = 100) and viewing hmg-help.pdf shows (very) briefly the index Replace SetStatusPage() function with following code: FUNCTION SetStatusPage() STATIC nPage := ...
by KDJ
Sat Apr 01, 2017 2:24 pm
Forum: PDF Generation
Topic: PDF Viewer DLL?
Replies: 102
Views: 3021

Re: PDF Viewer DLL?

Edward

Check test versions PdfView_7 and PdfView_8.
Does LeftAlt work?

PdfView_test.zip
(11.69 KiB) Downloaded 26 times
by KDJ
Fri Mar 31, 2017 9:57 pm
Forum: PDF Generation
Topic: PDF Viewer DLL?
Replies: 102
Views: 3021

Re: PDF Viewer DLL?

Krzysztof, the main menu does not work from keyboard if focus is set in Sumatra Panel by Alt key, but by F10 works great. IF I press and relase alone LeftAlt is nothing happens, but if I press ex. LeftAlt-P (for P age menu), I can hear "dong" - system sound So LeftAlt works differently than F10? An...