Search found 127 matches

by KDJ
Mon Apr 24, 2017 8:21 pm
Forum: PDF Generation
Topic: PDF Viewer DLL?
Replies: 109
Views: 3462

Re: PDF Viewer DLL?

Hi Pablo

Thank you very much for your explanation.
For compile via IDE, I found another solution - C functions in PdfView_C.prg.

PdfView_source.zip
(15.21 KiB) Downloaded 23 times

In new version:
- added ability to translate the interface,
- added Polish translation.
by KDJ
Sat Apr 22, 2017 7:38 pm
Forum: PDF Generation
Topic: PDF Viewer DLL?
Replies: 109
Views: 3462

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 11 times
by KDJ
Sat Apr 22, 2017 1:36 pm
Forum: PDF Generation
Topic: PDF Viewer DLL?
Replies: 109
Views: 3462

Re: PDF Viewer DLL?

OK, Pablo. Check whether this will be good:

PdfView_source.zip
(12.9 KiB) Downloaded 11 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: 109
Views: 3462

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: 109
Views: 3462

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 24 times

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

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

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: 635

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: 2058

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: 109
Views: 3462

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: 109
Views: 3462

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