75 LPSTR lpCmdLine,
int nCmdShow)
79 UNREFERENCED_PARAMETER( hPrevInstance );
80 UNREFERENCED_PARAMETER( lpCmdLine );
81 UNREFERENCED_PARAMETER( nCmdShow);
97 LRESULT CALLBACK
MainDlgProc(HWND hwnd, WORD msg, WPARAM wParam, LPARAM lParam)
100 UNREFERENCED_PARAMETER(lParam);
105 case WM_INITDIALOG: {
118 if (wParam == SC_CLOSE) {
119 EndDialog (hwnd, TRUE);
126 default:
return FALSE;
154 CHAR *str =
"These words will be swapped";
159 "This program will call the REXX interpreter to reverse ",
160 " the order of the words in a string. The interpreter ",
161 " is invoked with an initial environment name of 'FNC'",
162 " and a file name of 'BACKWARD.FNC'" ,
164 "Below is the result of invoking the interpreter:" ,
166 "The example is finished, close the" ,
167 "dialog when convenient." ,
173 for (sIndex=0; sIndex < 7; sIndex++) {
174 SendDlgItemMessage (hwnd,
IDC_LISTBOX, LB_ADDSTRING, 0, (LPARAM)chTextOut[sIndex] );
206 wsprintf (
chTxtBuffer,
" %s %d",
"Interpreter Return Code:", rc);
209 wsprintf (
chTxtBuffer,
" %s %d",
"Function Return Code: ", (
int) rexxrc);
218 for (sIndex=6; sIndex < 10; sIndex++) {
219 SendDlgItemMessage (hwnd,
IDC_LISTBOX, LB_ADDSTRING, 0, (LPARAM)chTextOut[sIndex] );
244 switch (Subfunction) {
int REXXENTRY RexxStart(size_t argcount, PCONSTRXSTRING arglist, const char *programname, PRXSTRING instore, const char *envname, int calltype, PRXSYSEXIT exits, short *retcode, PRXSTRING result)
int REXXENTRY RexxIOExit(int ExitNumber, int Subfunction, PEXIT parmblock)
int REXXENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
LRESULT CALLBACK MainDlgProc(HWND hwnd, WORD msg, WPARAM wParam, LPARAM lParam)
RexxReturnCode REXXENTRY RexxFreeMemory(void *)
RexxReturnCode REXXENTRY RexxDeregisterExit(CONSTANT_STRING, CONSTANT_STRING)
RexxReturnCode REXXENTRY RexxRegisterExitExe(CONSTANT_STRING, REXXPFN, CONSTANT_STRING)
#define MAKERXSTRING(r, p, l)
CONSTANT_RXSTRING rxsio_string
CONSTANT_RXSTRING rxsio_string
CONSTANT_STRING sysexit_name