Consultor Eletrônico



Kbase P9276: How to open an MS Paint Brush file in 4GL?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/03/2003
Status: Unverified

GOAL:

How to open an MS Paint Brush file in 4GL?

FACT(s) (Environment):

Windows NT 32 Intel/Windows 2000
Progress 8.x
Progress 9.x

FIX:

The following 4GL a file named 'myfile' in mspaint.exe from 4GL:

PROCEDURE WinExec EXTERNAL "KERNEL32.DLL":
DEFINE INPUT PARAMETER ProgramName AS CHARACTER.
DEFINE INPUT PARAMETER VisualStyle AS LONG.
DEFINE RETURN PARAMETER StatusCode AS LONG.
END PROCEDURE.

RUN WinExec (INPUT "mspaint myfile.bmp", INPUT 1, OUTPUT ReturnCode).