Can not load PDFPrint SDK DLL file from VB6 source code

To whom it may concern:

We would just like to ask the following questions before we purchase your PDFPrint SDK product.

1. Can we run our own VB6 executable file without it having to be in the BIN folder?
2. I don't know if it's just because we have the DEMO, but we can't run the sample program in development mode for debugging. We have to compile it first and put it in the BIN folder to work. Is this going to be the same scenario if we purchase the actual SDK product?
3. We tried registering the DLL but it does not work. Will this come with an installation program?

Thank you
===============================
>>1. Can we run our own VB6 executable file without it having to be in the BIN folder?

Yes, of course, you can place the DLL files to any folder that you want, then you can use LoadLibrary function to load the DLL files into your VB6 source code.

>>2. I don't know if it's just because we have the DEMO, but we can't run the sample program in development mode for debugging. We have to compile it first and put it in the BIN folder to work. Is this going to be the same scenario if we purchase the actual SDK product?

You can copy all DLL files to system32 folder, then you can compile and run the VB project to load DLL files properly.

>>3. We tried registering the DLL but it does not work. Will this come with an installation program?

Pdfprintsdk.dll is a Win32 DLL Library, it is not a COM, so you can't register it, but you can load it into your VB6 code directly, for example,

~~~~~~~~~
Private Declare Function VeryPDF_PDFPrint Lib "pdfprintsdk.dll" (ByVal strCommandLine As String) As Long

Private Sub Command1_Click()
Dim nRet As Long
Dim strCmd As String

strCmd = "pdfprint -$ XXXXXXXXXXXXXXXXXXXX"
strCmd = strCmd & " -printer ""docPrint"""
strCmd = strCmd & " """ & App.Path & "\readme.pdf"""

MsgBox (strCmd)
nRet = VeryPDF_PDFPrint(strCmd)
MsgBox (Str(nRet))
End Sub
~~~~~~~~~

You can call following DLL files to system32 folder, your VB6 source code will able to load pdfprintsdk.dll properly,

cimage.dll
GdiPlus.dll
pdfprintsdk.dll

VeryPDF
=====================================
Hello again..

I tried what you put in your reply.

I am using Windows 7

I put these files in C:\Windows\System32

cimage.dll
GdiPlus.dll
pdfprintsdk.dll
pdfprintsdk.lib

I compile it..no problem.

BUT I always get the error File not found pdfprintsdk.dll

this only happens when the EXE is not in the bin folder that came with the original file

I even tried doing a loadlibrary and no errors, BUT when it calls the VeryPDF_PDFPrint function that's when it cannot locate the printpdfsdk.dll file I just put in system32 folder

BUT if I put all these objects in your bin folder, it works???
==========================================
to clarify...

The EXE works as long as the DLL files are in the same folder.

However, I still cannot debug and step through my code in VB6 even though the DLL files are in the same folder. (There's also the same DLL in the System32 folder)
==========================================
Yes, you must place your EXE file and DLL files into same folder, your EXE will able to load DLL files from current folder properly.

We will try to release a PDFPrint COM in the future, you will able to debug this PDFPrint COM from VB6 code directly, we will let you know after PDFPrint COM is ready.

VeryPDF
==========================================
can you also verify that the software will have no problems with Chinese/Japanese characters?

what is the encoding folder for?
===========================
Yes, our PDFPrint COM does support Chinese/Japanese characters, you need put encoding folder to the DLL folder in order to support Chinese/Japanese characters.

VeryPDF
==========================================
Hello.

Sorry for the very late reply. The project was put on hold but is now in progress again.

Would you know when the PDFPrint COM will be available?

Thank you!
=======================
Thanks for your message, you may purchase PDFPrint SDK from our website first, after you purchased it, please email to us your Order ID, we will work on PDFPrint COM and send it to you within three business days, we hoping this offer will okay to you.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in PDF Print and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!