PDFDriverInit always returns 0

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
Norm Smith
Posts: 8
Joined: Wed Apr 23 2003
Location: Calgary, Canada

PDFDriverInit always returns 0

Post by Norm Smith » Wed Apr 23 2003

Hi,

I am using the evaluation version of the PDF Printer Driver. I am trying to use the DLL interface from a PowerBuilder application.

I am using Windows XP Pro and I have full administrator rights on my PC.

I have copied CDINTF.DLL into my Winnt\system32 directory.

After the call to PdfDriverInit() there is a small delay (3 or 4 secs) and the value 0 is returned.

I need help to get started here, am I doing this correctly?

Code: Select all

long      lv_hPrinter		//	printer handle
string    lv_msg		//	message String

lv_hPrinter = PdfDriverInit ( "Test PDF Converter" )

if lv_hPrinter = 0 then
    MessageBox ( "PdfDriverInit", "Failed" )
    return 
end if

Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan » Thu Apr 24 2003

Hello,

Please check that all the files you recieved with the PDF Converter are in the same folder as your application.

Thanks.

Norm Smith
Posts: 8
Joined: Wed Apr 23 2003
Location: Calgary, Canada

Post by Norm Smith » Fri Apr 25 2003

Thanks Joan,
That was it, I had not copied the supporting DLLs into the directory.

Norm
Norm Smith

Post Reply