Nov 20, 2002 #1 ttagle Programmer Nov 19, 2002 1 US I have an Visual Basic 6.0 Application, that I would like to run from Progress 8.2c (.p) in Windows 2000 if anyone could help me ? Thanks, Tatiana
I have an Visual Basic 6.0 Application, that I would like to run from Progress 8.2c (.p) in Windows 2000 if anyone could help me ? Thanks, Tatiana
Dec 3, 2002 #2 jlsmithhartfiel Programmer Jan 7, 2002 336 US We've used this method with success: def var vli-rtn_code as int no-undo. RUN ShellExecuteA (INPUT 0, INPUT 0, INPUT "notepad.exe", INPUT 0, INPUT 0, INPUT 1, /* 1=normal 2=minimized */ OUTPUT vli-rtn_code). PROCEDURE ShellExecuteA EXTERNAL "shell32.dll": /* Run Windows application */ DEFINE INPUT PARAMETER null_value1 AS LONG. DEFINE INPUT PARAMETER null_value2 AS LONG. DEFINE INPUT PARAMETER prog_name AS CHAR. DEFINE INPUT PARAMETER null_value3 AS LONG. DEFINE INPUT PARAMETER null_value4 AS LONG. DEFINE INPUT PARAMETER prog_style AS SHORT. DEFINE RETURN PARAMETER StatusCode AS LONG. END PROCEDURE. Hope this helps, Jessica Upvote 0 Downvote
We've used this method with success: def var vli-rtn_code as int no-undo. RUN ShellExecuteA (INPUT 0, INPUT 0, INPUT "notepad.exe", INPUT 0, INPUT 0, INPUT 1, /* 1=normal 2=minimized */ OUTPUT vli-rtn_code). PROCEDURE ShellExecuteA EXTERNAL "shell32.dll": /* Run Windows application */ DEFINE INPUT PARAMETER null_value1 AS LONG. DEFINE INPUT PARAMETER null_value2 AS LONG. DEFINE INPUT PARAMETER prog_name AS CHAR. DEFINE INPUT PARAMETER null_value3 AS LONG. DEFINE INPUT PARAMETER null_value4 AS LONG. DEFINE INPUT PARAMETER prog_style AS SHORT. DEFINE RETURN PARAMETER StatusCode AS LONG. END PROCEDURE. Hope this helps, Jessica