PDA

View Full Version : File not found in VB example


crow_se
February 15th, 2008, 09:51 AM
Hello all
I have just downloaded the evaluation Foxit SDK and the VB6 example. I registered the ocx, loaded the sample into VB6 and tried to run it.
In form frmDocument,
Public Sub myInitialize(OpenFileName As String)
when the program reaches line
Doc = FPDF_LoadDocument(OpenFileName, "")
it stops with an error
Runtime error 53
File not found: fpdfview

can anyone help ?
TIA
Stuart

jinming_wang
February 16th, 2008, 01:10 AM
Does the fpdfview.dll contained in your application directory?

crow_se
February 16th, 2008, 01:52 AM
Yes. I also tried registering it and received the message
...\fpdfview.dll was loaded, but the DllRegisterServer entry point was not found. This file cannot be registered.
The file also cannot be referenced within the VB IDE.
Stuart

crow_se
February 16th, 2008, 01:56 AM
Oh dear, I am covered in shame. :-(
I have just read the readme.txt about copying the dll into the system folder.
It works now.
Sorry for wasting your time.
Stuart