>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).