launcher.cxx (2722cedd) launcher.cxx (8951e390)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 90 unchanged lines hidden (view full) ---

99 rc = DosExecPgm(szFail, sizeof(szFail),
100 EXEC_SYNC, (PCSZ)pszCommandLine, (PCSZ)NULL, &result,
101 (PCSZ)szApplicationName);
102 if (rc) {
103 char szMessage[ _MAX_PATH*2];
104 sprintf( szMessage, "Execution failed! Contact technical support.\n\nReturn code: %d\nFailing module:%s\n", rc, szFail);
105 rc = WinMessageBox( HWND_DESKTOP, HWND_DESKTOP,
106 (PSZ)szMessage,
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 90 unchanged lines hidden (view full) ---

99 rc = DosExecPgm(szFail, sizeof(szFail),
100 EXEC_SYNC, (PCSZ)pszCommandLine, (PCSZ)NULL, &result,
101 (PCSZ)szApplicationName);
102 if (rc) {
103 char szMessage[ _MAX_PATH*2];
104 sprintf( szMessage, "Execution failed! Contact technical support.\n\nReturn code: %d\nFailing module:%s\n", rc, szFail);
105 rc = WinMessageBox( HWND_DESKTOP, HWND_DESKTOP,
106 (PSZ)szMessage,
107 (PSZ)"Unable to start OpenOffice.org!",
107 (PSZ)"Unable to start Apache OpenOffice!",
108 0, MB_ERROR | MB_OK);
109 WinDestroyMsgQueue( hmq);
110 WinTerminate( hab);
111 exit(1);
112 }
113
114 WinDestroyMsgQueue( hmq);
115 WinTerminate( hab);
116
117 exit( result.codeResult);
118}
108 0, MB_ERROR | MB_OK);
109 WinDestroyMsgQueue( hmq);
110 WinTerminate( hab);
111 exit(1);
112 }
113
114 WinDestroyMsgQueue( hmq);
115 WinTerminate( hab);
116
117 exit( result.codeResult);
118}