Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Decclare dll caused an EXCEPTION Error
Message
From
20/12/2013 01:13:40
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Decclare dll caused an EXCEPTION Error
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01590668
Message ID:
01590668
Views:
64
I am using ps2PDF.dll and encountered with the following error.

"Decclare dll caused an EXCEPTION"

also Got this error also

Problem Event Name: APPCRASH
Application Name: vfp9.exe
Application Version: 9.0.0.2412
Application Timestamp: 41be02c9
Fault Module Name: StackHash_f987
Fault Module Version: 6.1.7601.17514
Fault Module Timestamp: 4ce7b96e
Exception Code: c0000374
Exception Offset: 000c37b7
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: f987
Additional Information 2: f98719866f156fb56bae3b147508cd4f
Additional Information 3: b687
Additional Information 4: b687ab6b0fe3d2766606d8661ad19dc0


Here is the code
DECLARE INTEGER _apCreate@0   IN ps2pdf.dll AS apCreate
DECLARE INTEGER  _apClose@4    IN ps2pdf.dll AS apClose   INTEGER id
DECLARE INTEGER _apConvert@4  IN ps2pdf.dll AS apConvert INTEGER id
DECLARE INTEGER _apSetFunc@24 IN ps2pdf.dll AS apSetFunc INTEGER id, INTEGER code, INTEGER nOptVal1, INTEGER nOptVal2, STRING pOptVal1, STRING pOptVal2
DECLARE INTEGER _apGetFunc@24 IN ps2pdf.dll AS apGetFunc INTEGER id, INTEGER code, INTEGER nOptVal1, INTEGER nOptVal2, STRING pOptVal1, STRING pOptVal2

#define AP_Set_Output     3000
#define AP_Set_Input      3001
** Convert ps files to a general pdf file.
SELECT NEW_BILLS
GO top
Scan
iFilename=ALLTRIM(Fullpath)
oFilename=ALLTRIM(Newpath)
id = apCreate()
IF (id # 0)
   apSetFunc(id, AP_Set_Input , 0, 0, iFilename , 0)  &&input file.
   apSetFunc(id, AP_Set_Output, 0, 0, oFilename, 0) &&output format and file.
   iRet = apConvert(id)
   apClose(id)
ENDIF
ENDSCAN
Here is the PS2PDF.dll
https://www.dropbox.com/s/tyg9m7gg1krtz6c/ps2pdf.dll

Kinldy Guide
Harsh
Next
Reply
Map
View

Click here to load this message in the networking platform