Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing BOOL and CHAR to a DLL
Message
From
07/07/1998 10:54:32
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
07/07/1998 10:44:48
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00114879
Message ID:
00114884
Views:
19
>Hi all !
>I'm having some trouble with a DLL (not WIN32API).
>
>I have to declare functions that I want to use with DECLARE DLL but I don't know how to give a BOOL or a Handle as parameter...
>This function is
>short CRPE_API PEPrintReport (
> char FAR *reportFilePath,
> BOOL toDefaultPrinter,
> BOOL toWindow,
> char FAR *title,
> int left,
> int top,
> int width,
> int height,
> DWORD style,
> HWND parentWindow
>);
>
>
>Can anybody helps ?
>
>Thanks in advance,
>Banania.


Try

DECLARE Integer PEPrintReport IN CRPE_API.DLL ;
String @ ReportFilePath, ;
Integer toDefaultPrinter, ;
Integer ToWindow, ;
String @ Title, ;
Integer Left, ;
Integer Top, ;
Integer Width, ;
Integer Height, ;
Double Style, ;
Integer ParentWindow

Don't forget to pass the strings by reference (e.g. @lcTitle).
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform