Consultor Eletrônico



Kbase 18119: How to Call WIN32 API trigonometric Function: Sinh (Hyperbolic Sine)
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   27/03/2009
Status: Unverified

GOAL:

How to Call WIN32 API trigonometric Function: Sinh (Hyperbolic Sine)

FACT(s) (Environment):

Windows 32 Intel
Progress 4GL

FIX:

The Sinh function resides in the Microsoft Visual C++ runtime library called MSVCRT40.DLL. This function returns the hyperbolic sine of a number in radians.

DEFINE VARIABLE decResult AS DECIMAL NO-UNDO.

PROCEDURE sinh EXTERNAL "MSVCRT40.DLL" CDECL:
DEFINE INPUT PARAMETER dblValue AS DOUBLE NO-UNDO.
DEFINE RETURN PARAMETER dblResult AS DOUBLE NO-UNDO.
END PROCEDURE.

RUN sinh (INPUT 0.655, OUTPUT decResult).

MESSAGE "The Hyperbolic Sine of 0.655 is " decResult
VIEW-AS ALERT-BOX.