Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to get a CDI dll to work
Message
From
28/12/1999 16:53:15
 
 
To
28/12/1999 16:03:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00309328
Message ID:
00309530
Views:
45
>>>
>>>* This program will test the PDF printer Using the report
>>>* test which prints "test"
>>>DECLARE LONG PDFDriverInit IN "CDIntf.DLL"
>>
>>You didn't declare the parameter passed; try:
>>
>>DECLARE INTEGER PDFDriverInit IN "CDIntf.DLL" STRING @ szPrinter
>>
>>>LOCAL lnResult, lcPrinterName
>>>lnResult = 0
>>>lcPrinterName = "PDFPrinter"
>>>lnResult = PDFDriverInit(lcPrinterName)
>>>?
>>>? lnResult
>>>?
>>>
>>>
>>>The following is a listing of the documentation on this function:
>>>
>>>PDFDriverInit( PrinterName )
>>>Return type : long
>>>Description : Initializes the PDF printer
>>>DLL call : HANDLE PDFDriverInit( LPTSTR szPrinter )

< snip >

>Well, I tried to use what you suggested and this time I got:
>
>Declare DLL call caused an exception. (Error 2027)
>The parameters passed to a DLL caused an exception in the DLL.
>
>Make sure that you pass all the necessary parameters to the DLL and that the parameters are of the proper type.
>
The only other thing I can think of is to drop the " around the .DLL name, and to specify the full path of the .DLL if it's not on the Windows search path. The HANDLE is an unsigned 32 bit integer, and LPTSTR is a pointer to a null-terminated string.

Were you supposed to register this .DLL?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform