yahoo! launcher works!

This commit is contained in:
benfry
2002-07-29 23:10:00 +00:00
parent 526449c4b1
commit d73f93b0a5
9 changed files with 36 additions and 31 deletions
@@ -5,4 +5,5 @@ launcher.opt
launcher.plg
launcher.exe
launcher.ilk
launcher.aps
+1 -1
View File
@@ -1,5 +1,5 @@
// stdafx.cpp : source file that includes just the standard includes
// Imager.pch will be the pre-compiled header
// Launcher.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

+13 -13
View File
@@ -1,4 +1,4 @@
// Imager.cpp : Defines the class behaviors for the application.
// Launcher.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
@@ -21,10 +21,10 @@ static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CImagerApp
// CLauncherApp
BEGIN_MESSAGE_MAP(CImagerApp, CWinApp)
//{{AFX_MSG_MAP(CImagerApp)
BEGIN_MESSAGE_MAP(CLauncherApp, CWinApp)
//{{AFX_MSG_MAP(CLauncherApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
@@ -32,23 +32,23 @@ BEGIN_MESSAGE_MAP(CImagerApp, CWinApp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CImagerApp construction
// CLauncherApp construction
CImagerApp::CImagerApp()
CLauncherApp::CLauncherApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CImagerApp object
// The one and only CLauncherApp object
CImagerApp theApp;
CLauncherApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CImagerApp initialization
// CLauncherApp initialization
BOOL CImagerApp::InitInstance()
BOOL CLauncherApp::InitInstance()
{
// all these malloc statements... things may need to be larger.
@@ -88,7 +88,7 @@ BOOL CImagerApp::InitInstance()
*/
strcpy(outgoing_cmdline, JAVA_ARGS);
// append the classpath and imager.Application
// append the classpath and launcher.Application
char *cp = (char *)malloc(1024 * sizeof(char));
char *loaddir = (char *)malloc(MAX_PATH * sizeof(char));
@@ -111,7 +111,7 @@ BOOL CImagerApp::InitInstance()
strcat(outgoing_cmdline, cp);
// add the name of the class to execute
//strcat(outgoing_cmdline, "imager.Application ");
//strcat(outgoing_cmdline, "launcher.Application ");
strcat(outgoing_cmdline, JAVA_MAIN_CLASS);
strcat(outgoing_cmdline, " "); // space between next arg
@@ -123,7 +123,7 @@ BOOL CImagerApp::InitInstance()
char *executable = (char *)malloc(256 * sizeof(char));
// loaddir is the name path to the current application
strcpy(executable, loaddir);
// copy in the path for jrew, relative to imager.exe
// copy in the path for jrew, relative to launcher.exe
//strcat(executable, "\\bin\\jrew");
strcat(executable, "\\java\\bin\\javaw");
@@ -8,12 +8,12 @@ CFG=Launcher - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "Launcher.mak".
!MESSAGE NMAKE /f "launcher.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "Launcher.mak" CFG="Launcher - Win32 Debug"
!MESSAGE NMAKE /f "launcher.mak" CFG="Launcher - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
@@ -129,6 +129,10 @@ SOURCE=.\document.ico
# End Source File
# Begin Source File
SOURCE=.\launcher.rc
# End Source File
# Begin Source File
SOURCE=.\resources.rc2
# End Source File
# End Group
Binary file not shown.
+10 -10
View File
@@ -1,8 +1,8 @@
// launcher.h : main header file for the LAUNCHER application
//
#if !defined(AFX_IMAGER_H__12C4E5A4_27C5_11D2_BB54_006008DC2F94__INCLUDED_)
#define AFX_IMAGER_H__12C4E5A4_27C5_11D2_BB54_006008DC2F94__INCLUDED_
#if !defined(AFX_LAUNCHER_H__12C4E5A4_27C5_11D2_BB54_006008DC2F94__INCLUDED_)
#define AFX_LAUNCHER_H__12C4E5A4_27C5_11D2_BB54_006008DC2F94__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
@@ -19,27 +19,27 @@ extern "C" {
}
/////////////////////////////////////////////////////////////////////////////
// CImagerApp:
// See Imager.cpp for the implementation of this class
// CLauncherApp:
// See Launcher.cpp for the implementation of this class
//
class CImagerApp : public CWinApp
class CLauncherApp : public CWinApp
{
public:
CImagerApp();
CLauncherApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CImagerApp)
//{{AFX_VIRTUAL(CLauncherApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
void CImagerApp::buildClassPath(char*);
void CLauncherApp::buildClassPath(char*);
// Implementation
//{{AFX_MSG(CImagerApp)
//{{AFX_MSG(CLauncherApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
@@ -52,4 +52,4 @@ public:
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_IMAGER_H__12C4E5A4_27C5_11D2_BB54_006008DC2F94__INCLUDED_)
#endif // !defined(AFX_LAUNCHER_H__12C4E5A4_27C5_11D2_BB54_006008DC2F94__INCLUDED_)
@@ -50,7 +50,7 @@ BEGIN
"LANGUAGE 9, 1\r\n"
"#pragma code_page(1252)\r\n"
"#endif\r\n"
"#include ""res\\other.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
"#include ""resources.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
"#include ""afxres.rc"" // Standard components\r\n"
"#endif\0"
END
@@ -65,8 +65,8 @@ END
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME ICON DISCARDABLE "res\\application.ico"
IDR_DOCUMENT ICON DISCARDABLE "res\\document.ico"
IDR_MAINFRAME ICON DISCARDABLE "application.ico"
IDR_DOCUMENT ICON DISCARDABLE "document.ico"
/////////////////////////////////////////////////////////////////////////////
//
@@ -167,7 +167,7 @@ END
LANGUAGE 9, 1
#pragma code_page(1252)
#endif
#include "res\other.rc2" // non-Microsoft Visual C++ edited resources
#include "resources.rc2" // non-Microsoft Visual C++ edited resources
#include "afxres.rc" // Standard components
#endif
/////////////////////////////////////////////////////////////////////////////
+1 -1
View File
@@ -1,6 +1,6 @@
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by Imager.rc
// Used by launcher.rc
//
#define IDD_IMAGER_DIALOG 102
#define IDR_MAINFRAME 128