Consultor Eletrônico



Kbase P133564: How to execute a prowcapc file from a Progress application
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   7/23/2008
Status: Unverified

GOAL:

How to execute a prowcapc file from a Progress application

GOAL:

How to launch a Webclient application from a Progress application

FACT(s) (Environment):

Progress 9.1x
OpenEdge 10.1x
All Supported Operating Systems

FIX:

This can be done with the shellExecute Windows API. This is an example of how to do this:

PROCEDURE ShellExecuteA EXTERNAL "shell32":U :
define input parameter hwnd as long.
define input parameter lpOperation as char.
define input parameter lpFile as char.
define input parameter lpParameters as char.
define input parameter lpDirectory as char.
define input parameter nShowCmd as long.
define return parameter hInstance as long.
END PROCEDURE.
DEFINE VARIABLE ireturn AS INTEGER NO-UNDO.
RUN shellexecuteA (0, "open", "http://localhost/cnedi/Test69.prowcapc", "", "", 0, OUTPUT ireturn).

where localhost is the webServer (Apache) with the application file locator (prowcapc file). This will launch automatically this url and then the user will have the dialog box with the question 'Would you like to install.....".