Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where is the Entry Point

Status
Not open for further replies.

greggb

Programmer
Dec 6, 2003
30
US
I am a novice foxpro scripter dealing with my first .dll. This script works fine in db but in vfp I get "
can't find entry point"

Here is the vb code that works:

Dim QP As iSED.QuickPDF
Set QP = CreateObject("iSED.QuickPDF")
Call QP.UnlockKey("type your license key here")
Call QP.DrawText(100, 500, "Hello World!")
Call QP.SaveToFile("c:\test.pdf")
Set QP = Nothing


Here is what I am trying to use in VFP:

DECLARE INTEGER QuickPDF IN iSED.dll

DECLARE LONG UnlockKey in "iSED.dll" STRING RegKey
= UnlockKey("B6A343E8126AFF0285615E7F37830B04")

DECLARE LONG LoadFromFile in 'iSED.dll' STRING FileName
= LoadFromFile("c:\sedtech\front.pdf")

DECLARE LONG SaveToFile in 'iSED.dll' STRING FileName

= SaveToFile("c:\sedtech\newtest.pdf")

Can anyone see anything I am doing wrong?

Thanks.
 

Have you contacted the manufacturer of the DLL? It is difficult to determine what is missing without knowing how the dll is constructed and what parameters are needed to make it work.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
It appears that you are working with a COM DLL given the VB code that you posted. Then in the VFP code you are trying to use it as though it were a C DLL. There is a big difference. Assuming that iSED is registered on your system, try the following in VFP:

Local loQP
loQP = CreateObject("iSED.QuickPDF")
loQP.UnlockKey("type your license key here")
loQP.DrawText(100, 500, "Hello World!")
loQP.SaveToFile("c:\test.pdf")
Release loQP

boyd.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top