Alaska Software Inc. - XppPDF51 library
Username: Password:
AuthorTopic: XppPDF51 library
Al WilsonXppPDF51 library
on Thu, 28 Jun 2018 23:37:59 -0700
Hello Everyone:
Has anyone implemented the XppPdf51 library in WAA?

I can't get past the "application was unable to start correctly 
(0xc0000142)" error after successfully creating the TEST.EXE from 
PROJECT.XPJ.
Typically, that is a DLL load error.
All the supporting files are in the current directory including 
XppPdf52.dll.

The program file looks like this:

#include "xbpdev.ch"
#include "dll.ch"
#pragma library("ot4xb.lib")
#pragma library("xppPDF51.lib")
PROCEDURE AppSys
RETURN
PROCEDURE MAIN
local oPdf, nTrial:=1
oPdf := xbppdf():New()
IF nTrial=1
   oPdf:Create("hello.pdf")
   oPdf:NewPage( )
   oPdf:Text( 5, 35, "Hello World !" )
   oPdf:enddoc(.t.)
ELSEIF nTrial=2   eventually after Trial 1 runs
   oPdf:Create()
   oPdf:View("KYC.PDF")   or any fillable PDF form
   oPdf:Print("KYC.PDF")
   oPdf:Destroy()
endif
RETURN

The project file looks like this:

 Project - Definition - File created by PBUILD Version 2.00.959
 Date: 22.06.2018 Time: 13:27:04
[PROJECT]
     VERSION       = 2.2
     PBUILD        = @test
     MAKE          =
     project.xpj
[project.xpj]
     test.exe
[test.exe]
     COMPILE              = xpp
     COMPILE_FLAGS        = /q
     DEBUG                = yes
     GUI                  = no
     LINKER               = alink
     LINK_FLAGS           =
     RC_COMPILE           = arc
     RC_FLAGS             =
     INTERMEDIATE_DEBUG   = .debug
     INTERMEDIATE_RELEASE = .release
     test.prg

Can anyone make the TEST.EXE work?
Thank you.

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Edgar Borger Re: XppPDF51 library
on Tue, 03 Jul 2018 10:00:10 -0300
Hi Alison,

error 0xc0000142 means you have a wrong version dll, you are using xbase 2.00 with a 1.90 version dll, please check you files.

Regards,
Edgar




Em 29/06/2018 03:37, Al Wilson escreveu:
> Hello Everyone:
> Has anyone implemented the XppPdf51 library in WAA?
> 
> I can't get past the "application was unable to start correctly (0xc0000142)" error after successfully creating the TEST.EXE from PROJECT.XPJ.
> Typically, that is a DLL load error.
> All the supporting files are in the current directory including XppPdf52.dll.
> 
> The program file looks like this:
> 
> #include "xbpdev.ch"
> #include "dll.ch"
> #pragma library("ot4xb.lib")
> #pragma library("xppPDF51.lib")
> PROCEDURE AppSys
> RETURN
> PROCEDURE MAIN
> local oPdf, nTrial:=1
> oPdf := xbppdf():New()
> IF nTrial=1
>    oPdf:Create("hello.pdf")
>    oPdf:NewPage( )
>    oPdf:Text( 5, 35, "Hello World !" )
>    oPdf:enddoc(.t.)
> ELSEIF nTrial=2   eventually after Trial 1 runs
>    oPdf:Create()
>    oPdf:View("KYC.PDF")   or any fillable PDF form
>    oPdf:Print("KYC.PDF")
>    oPdf:Destroy()
> endif
> RETURN
> 
> The project file looks like this:
> 
>  Project - Definition - File created by PBUILD Version 2.00.959
>  Date: 22.06.2018 Time: 13:27:04
> [PROJECT]
>      VERSION       = 2.2
>      PBUILD        = @test
>      MAKE          =
>      project.xpj
> [project.xpj]
>      test.exe
> [test.exe]
>      COMPILE              = xpp
>      COMPILE_FLAGS        = /q
>      DEBUG                = yes
>      GUI                  = no
>      LINKER               = alink
>      LINK_FLAGS           =
>      RC_COMPILE           = arc
>      RC_FLAGS             =
>      INTERMEDIATE_DEBUG   = .debug
>      INTERMEDIATE_RELEASE = .release
>      test.prg
> 
> Can anyone make the TEST.EXE work?
> Thank you.
> 
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> 


Edgar Borger
Softsupply Informatica Ltda.
Rua Alagoas, 48
Sao Paulo, SP
01242-000
Tel   : (5511) 3159-1997
Email : softsupply@terra.com.br