Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing BOOL and CHAR to a DLL
Message
De
07/07/1998 10:54:32
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
07/07/1998 10:44:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00114879
Message ID:
00114884
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform