Add rayman2 source files
BIN
Rayman_X/cpa/tempgrp/ERO/Inc/ErO.aps
Normal file
205
Rayman_X/cpa/tempgrp/ERO/Inc/ErO.clw
Normal file
@@ -0,0 +1,205 @@
|
||||
; CLW file contains information for the MFC ClassWizard
|
||||
|
||||
[General Info]
|
||||
Version=1
|
||||
LastClass=ErrorOperator_DialogReport
|
||||
LastTemplate=CDocument
|
||||
NewFileInclude1=#include "stdafx.h"
|
||||
NewFileInclude2=#include "ero.h"
|
||||
LastPage=0
|
||||
|
||||
ClassCount=6
|
||||
Class1=ERROR_Dialog_ErrorInformations
|
||||
Class2=ErrorOperator_DialogReport
|
||||
Class3=ErrorOperator_TeamDialog
|
||||
|
||||
ResourceCount=8
|
||||
Resource1=IDD_DIALOG_MORE_INFO2
|
||||
Resource2=IDD_DIALOG_MORE_INFO
|
||||
Resource3=IDD_DIALOG_MORE_INFO1
|
||||
Class4=ErO_StaticForMoreInfos
|
||||
Class5=ErO_MoreInfoDialog
|
||||
Resource4=IDD_DIALOG_REPORT
|
||||
Resource5=IDD_DIALOG_MORE_INFO5
|
||||
Resource6=IDD_DIALOG_MORE_INFO4
|
||||
Resource7=IDD_DIALOG_ERROR
|
||||
Resource8=IDD_DIALOG_MORE_INFO3
|
||||
Class6=ErO_Document
|
||||
|
||||
[CLS:ERROR_Dialog_ErrorInformations]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=\Cpa\Public\ErO\ErO_DgEr.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\ErO\Src\ErO_DgEr.cpp
|
||||
Filter=D
|
||||
LastObject=ERROR_Dialog_ErrorInformations
|
||||
VirtualFilter=dWC
|
||||
|
||||
[CLS:ErrorOperator_DialogReport]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=ErOReprt.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\ErO\Src\ErOReprt.cpp
|
||||
LastObject=ErrorOperator_DialogReport
|
||||
Filter=D
|
||||
VirtualFilter=dWC
|
||||
|
||||
[CLS:ErrorOperator_TeamDialog]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=ErOTeam.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\ErO\Src\ErOTeam.cpp
|
||||
LastObject=ErrorOperator_TeamDialog
|
||||
|
||||
[DLG:IDD_DIALOG_REPORT]
|
||||
Type=1
|
||||
Class=ErrorOperator_DialogReport
|
||||
ControlCount=16
|
||||
Control1=IDOK,button,1342242817
|
||||
Control2=IDCANCEL,button,1342242816
|
||||
Control3=IDC_RADIO_REPORT_FILE,button,1342308361
|
||||
Control4=IDC_RADIO_REPORT_PRINTER,button,1476395017
|
||||
Control5=IDC_RADIO_REPORT_CLIPBOARD,button,1342177289
|
||||
Control6=IDC_RADIO_REPORT_MAIL,button,1342177289
|
||||
Control7=IDC_STATIC,button,1342177287
|
||||
Control8=IDC_STATIC_FILE,static,1342308352
|
||||
Control9=IDC_EDIT_FILE_NAME,edit,1350631552
|
||||
Control10=IDC_BUTTON_FILE_BROWSE,button,1342242816
|
||||
Control11=IDC_CHECK_MAIN_PROGRAMMER,button,1342242819
|
||||
Control12=IDC_CHECK_SECOND_PROGRAMMER,button,1342242819
|
||||
Control13=IDC_CHECK_RESPONSIBLE,button,1342242819
|
||||
Control14=IDC_CHECK_DELETE_FILE,button,1342242819
|
||||
Control15=IDC_EDIT_USER_ADDS,edit,1350631552
|
||||
Control16=IDC_STATIC_ADD_COMMENTS,static,1342308352
|
||||
|
||||
[DLG:IDD_DIALOG_ERROR]
|
||||
Type=1
|
||||
Class=ERROR_Dialog_ErrorInformations
|
||||
ControlCount=26
|
||||
Control1=IDCANCEL,button,1342242817
|
||||
Control2=IDOK,button,1342242816
|
||||
Control3=IDC_BUTTON_OPEN_SCRIPT,button,1342242816
|
||||
Control4=65535,static,1342308865
|
||||
Control5=65535,static,1342308354
|
||||
Control6=IDC_TEXT_FILE_NAME,static,1342312960
|
||||
Control7=65535,static,1342308354
|
||||
Control8=65535,button,1342177287
|
||||
Control9=IDC_TEXT_SCRIPT_FILE_NAME,static,1342312960
|
||||
Control10=65535,button,1342177287
|
||||
Control11=IDC_TEXT_ERROR_GRAVITY,static,1342312961
|
||||
Control12=65535,button,1342177287
|
||||
Control13=IDC_TEXT_CURRENT_ACTION,static,1342312960
|
||||
Control14=IDC_STATIC_IMAGE,static,1342179342
|
||||
Control15=65535,static,1342308354
|
||||
Control16=IDC_TEXT_FUNCTION,static,1342312960
|
||||
Control17=IDC_BUTTON_OPEN_SOURCE,button,1342242816
|
||||
Control18=IDC_STATIC_MODULE_NAME,static,1342312961
|
||||
Control19=65535,button,1342177287
|
||||
Control20=65535,button,1342177287
|
||||
Control21=IDC_STATIC_MORE_ON_MODULE,static,1342179598
|
||||
Control22=IDC_STATIC_MORE_ON_ACTION,static,1342179598
|
||||
Control23=IDC_STATIC_MORE_ON_DEBUG,static,1342179598
|
||||
Control24=IDC_STATIC_MORE_ON_SCRIPT,static,1342179598
|
||||
Control25=IDC_STATIC_MORE_ON_ADDITIONNAL,static,1342179598
|
||||
Control26=IDC_TEXT_ERROR_MORE_INFO,static,1342312960
|
||||
|
||||
[CLS:ErO_StaticForMoreInfos]
|
||||
Type=0
|
||||
HeaderFile=ErO_Stat.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\ERO\src\ErO_Stat.cpp
|
||||
BaseClass=CStatic
|
||||
Filter=W
|
||||
LastObject=ErO_StaticForMoreInfos
|
||||
VirtualFilter=WC
|
||||
|
||||
[DLG:IDD_DIALOG_MORE_INFO]
|
||||
Type=1
|
||||
Class=ErO_MoreInfoDialog
|
||||
ControlCount=1
|
||||
Control1=IDC_TEXT_TITLE,static,1342308865
|
||||
|
||||
[CLS:ErO_MoreInfoDialog]
|
||||
Type=0
|
||||
HeaderFile=ErO_DgIf.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\ERO\src\ErO_DgIf.cpp
|
||||
BaseClass=CDialog
|
||||
Filter=D
|
||||
LastObject=ErO_MoreInfoDialog
|
||||
VirtualFilter=dWC
|
||||
|
||||
[DLG:IDD_DIALOG_MORE_INFO1]
|
||||
Type=1
|
||||
Class=ErO_MoreInfoDialog
|
||||
ControlCount=19
|
||||
Control1=IDC_TEXT_TITLE,static,1342308865
|
||||
Control2=IDC_STATIC,static,1342308352
|
||||
Control3=IDC_MODULE_NAME,static,1342308865
|
||||
Control4=IDC_STATIC,static,1342308352
|
||||
Control5=IDC_MODULE_MAIN_NAME,static,1342308865
|
||||
Control6=IDC_STATIC,static,1342308352
|
||||
Control7=IDC_MODULE_SECOND_NAME,static,1342308865
|
||||
Control8=IDC_STATIC,static,1342308352
|
||||
Control9=IDC_MODULE_RESPONSIBLE_NAME,static,1342308865
|
||||
Control10=IDC_STATIC,static,1342308352
|
||||
Control11=IDC_MODULE_VERSION,static,1342308865
|
||||
Control12=IDC_MODULE_MAIN_PHONE,static,1342308865
|
||||
Control13=IDC_MODULE_MAIN_MAIL,static,1342308865
|
||||
Control14=IDC_MODULE_SECOND_PHONE,static,1342308865
|
||||
Control15=IDC_MODULE_SECOND_MAIL,static,1342308865
|
||||
Control16=IDC_MODULE_RESPONSIBLE_PHONE,static,1342308865
|
||||
Control17=IDC_MODULE_RESPONSIBLE_MAIL,static,1342308865
|
||||
Control18=IDC_BUTTON_MAKE_REPORT,button,1342242816
|
||||
Control19=IDC_IMAGE,static,1342179331
|
||||
|
||||
[DLG:IDD_DIALOG_MORE_INFO2]
|
||||
Type=1
|
||||
Class=?
|
||||
ControlCount=5
|
||||
Control1=IDC_TEXT_TITLE,static,1342308865
|
||||
Control2=IDC_STATIC,static,1342308352
|
||||
Control3=IDC_STATIC,static,1342308352
|
||||
Control4=IDC_CURRENT_ACTION,static,1342308864
|
||||
Control5=IDC_LIST_ADD_INFO,listbox,1353777409
|
||||
|
||||
[DLG:IDD_DIALOG_MORE_INFO3]
|
||||
Type=1
|
||||
Class=?
|
||||
ControlCount=9
|
||||
Control1=IDC_TEXT_TITLE,static,1342308865
|
||||
Control2=IDC_STATIC,static,1342308352
|
||||
Control3=IDC_FILE_NAME,static,1342308864
|
||||
Control4=IDC_STATIC,static,1342308352
|
||||
Control5=IDC_LINE_NUMBER,static,1342308864
|
||||
Control6=IDC_STATIC,static,1342308352
|
||||
Control7=IDC_FILE_DATE,static,1342308864
|
||||
Control8=IDC_STATIC,static,1342308352
|
||||
Control9=IDC_FUNCTION,static,1342308864
|
||||
|
||||
[DLG:IDD_DIALOG_MORE_INFO4]
|
||||
Type=1
|
||||
Class=?
|
||||
ControlCount=5
|
||||
Control1=IDC_TEXT_TITLE,static,1342308865
|
||||
Control2=IDC_STATIC,static,1342308352
|
||||
Control3=IDC_FILE_NAME,static,1342308864
|
||||
Control4=IDC_STATIC,static,1342308352
|
||||
Control5=IDC_LINE_NUMBER,static,1342308864
|
||||
|
||||
[DLG:IDD_DIALOG_MORE_INFO5]
|
||||
Type=1
|
||||
Class=?
|
||||
ControlCount=5
|
||||
Control1=IDC_TEXT_TITLE,static,1342308865
|
||||
Control2=IDC_STATIC,static,1342308352
|
||||
Control3=IDC_ERROR_TYPE,static,1342308864
|
||||
Control4=IDC_STATIC,static,1342308352
|
||||
Control5=IDC_EXPLANATION,static,1342308864
|
||||
|
||||
[CLS:ErO_Document]
|
||||
Type=0
|
||||
HeaderFile=ErO_Doc.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\ErO\src\ErO_Doc.cpp
|
||||
BaseClass=CDocument
|
||||
Filter=N
|
||||
LastObject=ErO_Document
|
||||
|
447
Rayman_X/cpa/tempgrp/ERO/Inc/ErO.rc
Normal file
@@ -0,0 +1,447 @@
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "ErO_Res.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifndef _MAC
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,0,0,1
|
||||
PRODUCTVERSION 1,0,0,1
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040C04B0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "\0"
|
||||
VALUE "FileDescription", "DLL de Err\0"
|
||||
VALUE "FileVersion", "1, 0, 0, 1\0"
|
||||
VALUE "InternalName", "Err\0"
|
||||
VALUE "LegalCopyright", "Copyright (C) 1997\0"
|
||||
VALUE "LegalTrademarks", "\0"
|
||||
VALUE "OriginalFilename", "Err.DLL\0"
|
||||
VALUE "ProductName", "Biblioth<74>que de liaison dynamique Err\0"
|
||||
VALUE "ProductVersion", "1, 0, 0, 1\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Traduction", 0x40c, 1200
|
||||
END
|
||||
END
|
||||
|
||||
#endif // !_MAC
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// French (France) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"ErO_Res.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
|
||||
"#define _AFX_NO_OLE_RESOURCES\r\n"
|
||||
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
|
||||
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
|
||||
"\r\n"
|
||||
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)\r\n"
|
||||
"#ifdef _WIN32\r\n"
|
||||
"LANGUAGE 9, 1\r\n"
|
||||
"#pragma code_page(1252)\r\n"
|
||||
"#endif\r\n"
|
||||
"#include ""l.fra\\afxres.rc"" // Standard components\r\n"
|
||||
"#endif\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_DIALOG_REPORT DIALOG DISCARDABLE 0, 0, 214, 180
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Error Informations - Report"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,43,159,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,119,159,50,14
|
||||
CONTROL "Write in a File",IDC_RADIO_REPORT_FILE,"Button",
|
||||
BS_AUTORADIOBUTTON | WS_GROUP,13,17,59,10
|
||||
CONTROL "Printer",IDC_RADIO_REPORT_PRINTER,"Button",
|
||||
BS_AUTORADIOBUTTON | WS_DISABLED,13,31,36,10
|
||||
CONTROL "Copy to Clipboard",IDC_RADIO_REPORT_CLIPBOARD,"Button",
|
||||
BS_AUTORADIOBUTTON,13,45,71,10
|
||||
CONTROL "Send by Mail",IDC_RADIO_REPORT_MAIL,"Button",
|
||||
BS_AUTORADIOBUTTON,13,59,57,10
|
||||
GROUPBOX "What kind of report do you want :",IDC_STATIC,7,7,200,
|
||||
66
|
||||
LTEXT "Chose a file to save the report :",IDC_STATIC_FILE,7,74,
|
||||
200,8
|
||||
EDITTEXT IDC_EDIT_FILE_NAME,7,85,200,14,ES_AUTOHSCROLL
|
||||
PUSHBUTTON "Browse",IDC_BUTTON_FILE_BROWSE,157,104,50,14
|
||||
CONTROL "Main programmer",IDC_CHECK_MAIN_PROGRAMMER,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,77,70,10
|
||||
CONTROL "Second programmer",IDC_CHECK_SECOND_PROGRAMMER,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,85,79,10
|
||||
CONTROL "Responsible",IDC_CHECK_RESPONSIBLE,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,94,55,10
|
||||
CONTROL "Delete local report after sent",IDC_CHECK_DELETE_FILE,
|
||||
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,110,105,10
|
||||
EDITTEXT IDC_EDIT_USER_ADDS,7,132,200,14,ES_AUTOHSCROLL
|
||||
LTEXT "Add your comments to Mail :",IDC_STATIC_ADD_COMMENTS,7,
|
||||
122,90,8
|
||||
END
|
||||
|
||||
IDD_DIALOG_ERROR DIALOGEX 0, 0, 283, 250
|
||||
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION
|
||||
CAPTION "CPA Editors - Error information"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "Try to continue",IDCANCEL,76,229,57,14
|
||||
PUSHBUTTON "Debug",IDOK,156,229,50,14
|
||||
PUSHBUTTON "Open this Script file",IDC_BUTTON_OPEN_SCRIPT,175,171,
|
||||
77,11
|
||||
CTEXT "A problem has been detected in the Editors",-1,55,7,173,
|
||||
17,SS_CENTERIMAGE,WS_EX_DLGMODALFRAME
|
||||
RTEXT "Source file : ",-1,15,107,40,8
|
||||
LTEXT "",IDC_TEXT_FILE_NAME,56,107,196,11,SS_CENTERIMAGE |
|
||||
SS_SUNKEN
|
||||
RTEXT "The current Data script file is : ",-1,15,159,96,8
|
||||
GROUPBOX "Script informations",-1,7,148,269,36
|
||||
LTEXT "",IDC_TEXT_SCRIPT_FILE_NAME,114,158,138,11,
|
||||
SS_CENTERIMAGE | SS_SUNKEN
|
||||
GROUPBOX "Additionnal informations",-1,7,189,269,36
|
||||
CTEXT "",IDC_TEXT_ERROR_GRAVITY,66,205,151,11,SS_CENTERIMAGE |
|
||||
SS_SUNKEN
|
||||
GROUPBOX "Current Action was",-1,7,55,269,40
|
||||
LTEXT "Current Action",IDC_TEXT_CURRENT_ACTION,15,68,237,11,
|
||||
SS_CENTERIMAGE | SS_SUNKEN
|
||||
CONTROL 205,IDC_STATIC_IMAGE,"Static",SS_BITMAP |
|
||||
SS_REALSIZEIMAGE,24,199,26,24,WS_EX_DLGMODALFRAME
|
||||
RTEXT "In function : ",-1,15,119,40,8
|
||||
LTEXT "",IDC_TEXT_FUNCTION,56,119,196,11,SS_CENTERIMAGE |
|
||||
SS_SUNKEN
|
||||
PUSHBUTTON "Open this Source file",IDC_BUTTON_OPEN_SOURCE,175,132,
|
||||
77,11
|
||||
CTEXT "Module Name",IDC_STATIC_MODULE_NAME,74,38,136,10,
|
||||
SS_CENTERIMAGE | SS_SUNKEN
|
||||
GROUPBOX "The Module is",-1,7,28,269,24
|
||||
GROUPBOX "Debugging informations",-1,7,97,269,48
|
||||
CONTROL 136,IDC_STATIC_MORE_ON_MODULE,"Static",SS_BITMAP |
|
||||
SS_NOTIFY | SS_REALSIZEIMAGE,256,33,20,18
|
||||
CONTROL 136,IDC_STATIC_MORE_ON_ACTION,"Static",SS_BITMAP |
|
||||
SS_NOTIFY | SS_REALSIZEIMAGE,256,65,20,18
|
||||
CONTROL 136,IDC_STATIC_MORE_ON_DEBUG,"Static",SS_BITMAP |
|
||||
SS_NOTIFY | SS_REALSIZEIMAGE,256,102,20,18
|
||||
CONTROL 136,IDC_STATIC_MORE_ON_SCRIPT,"Static",SS_BITMAP |
|
||||
SS_NOTIFY | SS_REALSIZEIMAGE,256,153,20,18
|
||||
CONTROL 136,IDC_STATIC_MORE_ON_ADDITIONNAL,"Static",SS_BITMAP |
|
||||
SS_NOTIFY | SS_REALSIZEIMAGE,256,194,20,18
|
||||
LTEXT "First Line of Additionnal info",
|
||||
IDC_TEXT_ERROR_MORE_INFO,15,80,237,11,SS_CENTERIMAGE |
|
||||
SS_SUNKEN
|
||||
END
|
||||
|
||||
IDD_DIALOG_MORE_INFO DIALOGEX 0, 0, 182, 126
|
||||
STYLE DS_MODALFRAME | WS_POPUP
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
CTEXT "Static",IDC_TEXT_TITLE,7,7,168,11,SS_CENTERIMAGE,
|
||||
WS_EX_CLIENTEDGE
|
||||
END
|
||||
|
||||
IDD_DIALOG_MORE_INFO1 DIALOGEX 0, 0, 151, 278
|
||||
STYLE DS_MODALFRAME | WS_POPUP
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
CTEXT "Module additionnal informations",IDC_TEXT_TITLE,7,7,137,
|
||||
11,SS_CENTERIMAGE,WS_EX_CLIENTEDGE
|
||||
LTEXT "Module name :",IDC_STATIC,7,21,48,8
|
||||
CTEXT "Static",IDC_MODULE_NAME,7,31,137,11,SS_CENTERIMAGE,
|
||||
WS_EX_STATICEDGE
|
||||
LTEXT "Main programmer :",IDC_STATIC,7,90,59,8
|
||||
CTEXT "Static",IDC_MODULE_MAIN_NAME,7,102,137,11,
|
||||
SS_CENTERIMAGE,WS_EX_STATICEDGE
|
||||
LTEXT "Second programmer :",IDC_STATIC,7,146,68,8
|
||||
CTEXT "Static",IDC_MODULE_SECOND_NAME,7,158,137,11,
|
||||
SS_CENTERIMAGE,WS_EX_STATICEDGE
|
||||
LTEXT "Responsible :",IDC_STATIC,7,201,44,8
|
||||
CTEXT "Static",IDC_MODULE_RESPONSIBLE_NAME,7,212,137,11,
|
||||
SS_CENTERIMAGE,WS_EX_STATICEDGE
|
||||
LTEXT "Version :",IDC_STATIC,7,45,28,8
|
||||
CTEXT "Static",IDC_MODULE_VERSION,7,54,137,11,SS_CENTERIMAGE,
|
||||
WS_EX_STATICEDGE
|
||||
CTEXT "Static",IDC_MODULE_MAIN_PHONE,7,115,137,11,
|
||||
SS_CENTERIMAGE,WS_EX_STATICEDGE
|
||||
CTEXT "Static",IDC_MODULE_MAIN_MAIL,7,128,137,11,
|
||||
SS_CENTERIMAGE,WS_EX_STATICEDGE
|
||||
CTEXT "Static",IDC_MODULE_SECOND_PHONE,7,171,137,11,
|
||||
SS_CENTERIMAGE,WS_EX_STATICEDGE
|
||||
CTEXT "Static",IDC_MODULE_SECOND_MAIL,7,184,137,11,
|
||||
SS_CENTERIMAGE,WS_EX_STATICEDGE
|
||||
CTEXT "Static",IDC_MODULE_RESPONSIBLE_PHONE,7,225,137,11,
|
||||
SS_CENTERIMAGE,WS_EX_STATICEDGE
|
||||
CTEXT "Static",IDC_MODULE_RESPONSIBLE_MAIL,7,238,137,11,
|
||||
SS_CENTERIMAGE,WS_EX_STATICEDGE
|
||||
PUSHBUTTON "Make Report",IDC_BUTTON_MAKE_REPORT,7,257,53,14
|
||||
ICON IDI_ICON_PROG_YB,IDC_IMAGE,7,68,20,20,SS_REALSIZEIMAGE
|
||||
END
|
||||
|
||||
IDD_DIALOG_MORE_INFO2 DIALOGEX 0, 0, 160, 174
|
||||
STYLE DS_MODALFRAME | WS_POPUP
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
CTEXT "Current action additionnal informations",IDC_TEXT_TITLE,
|
||||
7,7,146,11,SS_CENTERIMAGE,WS_EX_CLIENTEDGE
|
||||
LTEXT "Current Action was :",IDC_STATIC,7,21,64,8
|
||||
LTEXT "Additionnal informations :",IDC_STATIC,7,48,79,8
|
||||
LTEXT "Static",IDC_CURRENT_ACTION,7,31,146,11,SS_CENTERIMAGE,
|
||||
WS_EX_STATICEDGE
|
||||
LISTBOX IDC_LIST_ADD_INFO,7,59,146,108,LBS_NOINTEGRALHEIGHT |
|
||||
WS_VSCROLL | WS_HSCROLL | WS_TABSTOP
|
||||
END
|
||||
|
||||
IDD_DIALOG_MORE_INFO3 DIALOGEX 0, 0, 142, 129
|
||||
STYLE DS_MODALFRAME | WS_POPUP
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
CTEXT "Debug additionnal informations",IDC_TEXT_TITLE,7,7,128,
|
||||
11,SS_CENTERIMAGE,WS_EX_CLIENTEDGE
|
||||
LTEXT "Complete file name is :",IDC_STATIC,7,20,71,8
|
||||
LTEXT "Static",IDC_FILE_NAME,7,30,128,11,SS_CENTERIMAGE,
|
||||
WS_EX_STATICEDGE
|
||||
LTEXT "Line number is :",IDC_STATIC,7,43,50,8
|
||||
LTEXT "Static",IDC_LINE_NUMBER,7,53,128,11,SS_CENTERIMAGE,
|
||||
WS_EX_STATICEDGE
|
||||
LTEXT "Last modification date is :",IDC_STATIC,7,66,80,8
|
||||
LTEXT "Static",IDC_FILE_DATE,7,76,128,11,SS_CENTERIMAGE,
|
||||
WS_EX_STATICEDGE
|
||||
LTEXT "Function is :",IDC_STATIC,7,99,39,8
|
||||
LTEXT "Static",IDC_FUNCTION,7,111,128,11,SS_CENTERIMAGE,
|
||||
WS_EX_STATICEDGE
|
||||
END
|
||||
|
||||
IDD_DIALOG_MORE_INFO4 DIALOGEX 0, 0, 138, 73
|
||||
STYLE DS_MODALFRAME | WS_POPUP
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
CTEXT "Script additionnal informations",IDC_TEXT_TITLE,7,7,124,
|
||||
11,SS_CENTERIMAGE,WS_EX_CLIENTEDGE
|
||||
LTEXT "Complete file name is :",IDC_STATIC,7,21,71,8
|
||||
LTEXT "Static",IDC_FILE_NAME,7,31,124,11,SS_CENTERIMAGE,
|
||||
WS_EX_STATICEDGE
|
||||
LTEXT "Line number is :",IDC_STATIC,7,44,50,8
|
||||
LTEXT "Static",IDC_LINE_NUMBER,7,54,124,11,SS_CENTERIMAGE,
|
||||
WS_EX_STATICEDGE
|
||||
END
|
||||
|
||||
IDD_DIALOG_MORE_INFO5 DIALOGEX 0, 0, 112, 73
|
||||
STYLE DS_MODALFRAME | WS_POPUP
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
CTEXT "Global informations",IDC_TEXT_TITLE,7,7,98,11,
|
||||
SS_CENTERIMAGE,WS_EX_CLIENTEDGE
|
||||
LTEXT "Error gravity :",IDC_STATIC,7,22,42,8
|
||||
LTEXT "Static",IDC_ERROR_TYPE,7,32,98,11,SS_CENTERIMAGE,
|
||||
WS_EX_STATICEDGE
|
||||
LTEXT "Explanation :",IDC_STATIC,7,45,42,8
|
||||
LTEXT "Static",IDC_EXPLANATION,7,55,98,11,SS_CENTERIMAGE,
|
||||
WS_EX_STATICEDGE
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Bitmap
|
||||
//
|
||||
|
||||
IDB_BITMAP_ERROR_FATAL BITMAP DISCARDABLE "..\\res\\bmp00002.bmp"
|
||||
IDB_BITMAP_ERROR_INSTABLE BITMAP DISCARDABLE "..\\res\\bmp00004.bmp"
|
||||
IDB_BITMAP_ERROR_UNKNOWN BITMAP DISCARDABLE "..\\res\\bmp00003.bmp"
|
||||
IDB_BITMAP_ERROR_WARNING BITMAP DISCARDABLE "..\\res\\bitmap_e.bmp"
|
||||
IDB_PLUS_1 BITMAP DISCARDABLE "..\\res\\bitmap1.bmp"
|
||||
IDB_PLUS_2 BITMAP DISCARDABLE "..\\res\\plus_2.bmp"
|
||||
IDB_PLUS_3 BITMAP DISCARDABLE "..\\res\\plus_3.bmp"
|
||||
IDB_PLUS_4 BITMAP DISCARDABLE "..\\res\\plus_4.bmp"
|
||||
IDB_PLUS_5 BITMAP DISCARDABLE "..\\res\\plus_5.bmp"
|
||||
IDB_PLUS_6 BITMAP DISCARDABLE "..\\res\\plus_6.bmp"
|
||||
IDB_PLUS_7 BITMAP DISCARDABLE "..\\res\\plus_7.bmp"
|
||||
IDB_PLUS_8 BITMAP DISCARDABLE "..\\res\\plus_8.bmp"
|
||||
IDB_BITMAP_BACKGROUND_1 BITMAP DISCARDABLE "..\\res\\bmp00001.bmp"
|
||||
IDB_BITMAP_BACKGROUND_2 BITMAP DISCARDABLE "..\\res\\bitmap_b.bmp"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO DISCARDABLE
|
||||
BEGIN
|
||||
IDD_DIALOG_REPORT, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 207
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 173
|
||||
END
|
||||
|
||||
IDD_DIALOG_ERROR, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 276
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 243
|
||||
END
|
||||
|
||||
IDD_DIALOG_MORE_INFO, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 175
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 119
|
||||
END
|
||||
|
||||
IDD_DIALOG_MORE_INFO1, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 144
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 271
|
||||
END
|
||||
|
||||
IDD_DIALOG_MORE_INFO2, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 153
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 167
|
||||
END
|
||||
|
||||
IDD_DIALOG_MORE_INFO3, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 135
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 122
|
||||
END
|
||||
|
||||
IDD_DIALOG_MORE_INFO4, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 131
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 66
|
||||
END
|
||||
|
||||
IDD_DIALOG_MORE_INFO5, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 105
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 66
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
IDI_ICON_TELEPHONE ICON DISCARDABLE "..\\res\\icon_tel.ico"
|
||||
IDI_ICON_NAME ICON DISCARDABLE "..\\res\\icon_nam.ico"
|
||||
IDI_ICON_SECOND ICON DISCARDABLE "..\\res\\icon_sec.ico"
|
||||
IDI_ICON_PROG_PINK ICON DISCARDABLE "..\\res\\ico00001.ico"
|
||||
IDI_ICON_PROG_DR ICON DISCARDABLE "..\\res\\icon2.ico"
|
||||
IDI_ICON_PROG_XB ICON DISCARDABLE "..\\res\\icon3.ico"
|
||||
IDI_ICON_PROG_YB ICON DISCARDABLE "..\\res\\icon4.ico"
|
||||
IDI_ICON_IDEA ICON DISCARDABLE "..\\res\\icon5.ico"
|
||||
IDI_ICON_INFORMATION ICON DISCARDABLE "..\\res\\icon6.ico"
|
||||
#endif // French (France) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
#define _AFX_NO_SPLITTER_RESOURCES
|
||||
#define _AFX_NO_OLE_RESOURCES
|
||||
#define _AFX_NO_TRACKER_RESOURCES
|
||||
#define _AFX_NO_PROPERTY_RESOURCES
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE 9, 1
|
||||
#pragma code_page(1252)
|
||||
#endif
|
||||
#include "l.fra\afxres.rc" // Standard components
|
||||
#endif
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
70
Rayman_X/cpa/tempgrp/ERO/Inc/ErOReprt.hpp
Normal file
@@ -0,0 +1,70 @@
|
||||
#ifndef _ERROR_OPERATOR_DIALOG_REPORT_
|
||||
#define _ERROR_OPERATOR_DIALOG_REPORT_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// ErOReprt.hpp : header file
|
||||
//
|
||||
|
||||
#include "ErO_Res.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ErrorOperator_DialogReport dialog
|
||||
|
||||
class ErrorOperator_DialogReport : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
ErrorOperator_DialogReport(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(ErrorOperator_DialogReport)
|
||||
enum { IDD = IDD_DIALOG_REPORT };
|
||||
int m_iChosenReportType;
|
||||
CString m_csFileName;
|
||||
BOOL m_bSendToMainProgrammer;
|
||||
BOOL m_bSendToSecondProgrammer;
|
||||
BOOL m_bSendToResponsible;
|
||||
BOOL m_bDeleteReport;
|
||||
CString m_csAddedComments;
|
||||
//}}AFX_DATA
|
||||
|
||||
private:
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(ErrorOperator_DialogReport)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
private:
|
||||
void m_pri_fn_vSaveFile();
|
||||
void m_pri_fn_vPrint();
|
||||
void m_pri_fn_vCopyToClipboard();
|
||||
void m_pri_fn_vCopyIntoClipBoard(CString csText);
|
||||
void m_pri_fn_vSendByMail();
|
||||
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(ErrorOperator_DialogReport)
|
||||
virtual void OnOK();
|
||||
afx_msg void OnButtonFileBrowse();
|
||||
afx_msg void OnRadioReportClipboard();
|
||||
afx_msg void OnRadioReportFile();
|
||||
afx_msg void OnRadioReportPrinter();
|
||||
afx_msg void OnRadioReportMail();
|
||||
virtual BOOL OnInitDialog();
|
||||
//}}AFX_MSG
|
||||
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // _ERROR_OPERATOR_DIALOG_REPORT_
|
107
Rayman_X/cpa/tempgrp/ERO/Inc/ErOTeam.hpp
Normal file
@@ -0,0 +1,107 @@
|
||||
// ErOTeam.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _ERROR_OPERATOR_TEAM_DIALOG_
|
||||
#define _ERROR_OPERATOR_TEAM_DIALOG_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "Ero_Res.h"
|
||||
|
||||
#include <afxtempl.h>
|
||||
|
||||
//############################################################################
|
||||
class ErrorOperator_Team
|
||||
{
|
||||
public:
|
||||
ErrorOperator_Team( //Module
|
||||
CString _csModuleName,
|
||||
CString _csModuleVersion,
|
||||
|
||||
//Main Programmer
|
||||
CString _csMainProgrammerName,
|
||||
CString _csMainProgrammerPhoneNumber,
|
||||
CString _csMainProgrammerEMailAddress,
|
||||
|
||||
//Responsible
|
||||
CString _csResponsibleName,
|
||||
CString _csResponsiblePhoneNumber,
|
||||
CString _csResponsibleEMailAddress,
|
||||
|
||||
//Second Programmer
|
||||
CString _csSecondProgrammerName,
|
||||
CString _csSecondProgrammerPhoneNumber,
|
||||
CString _csSecondProgrammerEMailAddress
|
||||
);
|
||||
~ErrorOperator_Team();
|
||||
|
||||
//Members
|
||||
public:
|
||||
//Module
|
||||
CString m_csModuleName;
|
||||
CString m_csModuleVersion;
|
||||
|
||||
//Main Programmer
|
||||
CString m_csMainProgrammerName;
|
||||
CString m_csMainProgrammerPhoneNumber;
|
||||
CString m_csMainProgrammerEMailAddress;
|
||||
|
||||
//Responsible
|
||||
CString m_csResponsibleName;
|
||||
CString m_csResponsiblePhoneNumber;
|
||||
CString m_csResponsibleEMailAddress;
|
||||
|
||||
//Second Programmer
|
||||
CString m_csSecondProgrammerName;
|
||||
CString m_csSecondProgrammerPhoneNumber;
|
||||
CString m_csSecondProgrammerEMailAddress;
|
||||
|
||||
};
|
||||
|
||||
//############################################################################
|
||||
class ErrorOperator_TeamList : public CList<ErrorOperator_Team *, ErrorOperator_Team *>
|
||||
{
|
||||
public:
|
||||
ErrorOperator_TeamList();
|
||||
~ErrorOperator_TeamList();
|
||||
|
||||
//Members
|
||||
public:
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
//Functions
|
||||
public:
|
||||
ErrorOperator_Team *m_pub_fn_pclAddTeam(//Module
|
||||
CString _csModuleName,
|
||||
CString _csModuleVersion,
|
||||
|
||||
//Main Programmer
|
||||
CString _csMainProgrammerName,
|
||||
CString _csMainProgrammerPhoneNumber,
|
||||
CString _csMainProgrammerEMailAddress,
|
||||
|
||||
//Responsible
|
||||
CString _csResponsibleName,
|
||||
CString _csResponsiblePhoneNumber,
|
||||
CString _csResponsibleEMailAddress,
|
||||
|
||||
//Second Programmer
|
||||
CString _csSecondProgrammerName,
|
||||
CString _csSecondProgrammerPhoneNumber,
|
||||
CString _csSecondProgrammerEMailAddress);
|
||||
|
||||
ErrorOperator_Team *m_pub_fn_pclGetTeamFromModuleName(CString _csModuleName);
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
void m_pri_fn_vEmptyList();
|
||||
|
||||
friend class ErrorOperator_TeamDialog;
|
||||
};
|
||||
|
||||
#endif //_ERROR_OPERATOR_TEAM_DIALOG_
|
80
Rayman_X/cpa/tempgrp/ERO/Inc/ErO_DgIf.hpp
Normal file
@@ -0,0 +1,80 @@
|
||||
#if !defined(AFX_ERO_DGIF_HPP__DF0D3853_6662_11D1_B657_006097828C2B__INCLUDED_)
|
||||
#define AFX_ERO_DGIF_HPP__DF0D3853_6662_11D1_B657_006097828C2B__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// ErO_DgIf.hpp : header file
|
||||
//
|
||||
|
||||
#include <afxtempl.h>
|
||||
|
||||
#include "ErO_Res.h"
|
||||
|
||||
#define ERO_BITMAP_AS_BACKGROUND
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ErO_MoreInfoDialog dialog
|
||||
|
||||
class ErO_MoreInfoDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
//Standard constructor
|
||||
ErO_MoreInfoDialog(CWnd* pParent,
|
||||
CPoint cpPoint,
|
||||
enum ErO_eStaticType _tdeType);
|
||||
|
||||
~ErO_MoreInfoDialog();
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(ErO_MoreInfoDialog)
|
||||
enum { IDD = IDD_DIALOG_MORE_INFO1 };
|
||||
//}}AFX_DATA
|
||||
private:
|
||||
CPoint m_pri_cpPoint;
|
||||
enum ErO_eStaticType m_pri_eType;
|
||||
BOOL m_pri_bHasCapturedMouse;
|
||||
CRect m_pri_crWindowRect;
|
||||
|
||||
CList<UINT *, UINT *> m_pri_clListOfID;
|
||||
|
||||
#ifdef ERO_BITMAP_AS_BACKGROUND
|
||||
CBitmap m_pri_cBackgroundBitmap;
|
||||
#endif //ERO_BITMAP_AS_BACKGROUND
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(ErO_MoreInfoDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(ErO_MoreInfoDialog)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
||||
afx_msg void OnButtonMakeReport();
|
||||
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
||||
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
||||
#ifdef ERO_BITMAP_AS_BACKGROUND
|
||||
afx_msg void OnPaint();
|
||||
#endif //ERO_BITMAP_AS_BACKGROUND
|
||||
//}}AFX_MSG
|
||||
|
||||
private:
|
||||
void m_pri_BuilListOfID();
|
||||
void m_pri_MoveControls(long _lWidth);
|
||||
long m_pri_fn_l_ComputeLongestString();
|
||||
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_ERO_DGIF_HPP__DF0D3853_6662_11D1_B657_006097828C2B__INCLUDED_)
|
13
Rayman_X/cpa/tempgrp/ERO/Inc/ErO_Priv.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
// ErO Module : private global functions
|
||||
//
|
||||
// YB
|
||||
/////////////////////////////////////////////
|
||||
#ifndef _ERO_PRIVATE_
|
||||
#define _ERO_PRIVATE_
|
||||
|
||||
void ERO_fn_vInit();
|
||||
|
||||
void ErO_fn_vBuildStringListForInfos(CString _csOriginalString,
|
||||
CStringList *_pclList);
|
||||
|
||||
#endif _ERO_PRIVATE_
|
96
Rayman_X/cpa/tempgrp/ERO/Inc/ErO_Res.h
Normal file
@@ -0,0 +1,96 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by ErO.rc
|
||||
//
|
||||
#define IDI_ICON_TELEPHONE 130
|
||||
#define IDI_ICON_NAME 131
|
||||
#define IDI_ICON_SECOND 134
|
||||
#define IDD_DIALOG_REPORT 135
|
||||
#define IDB_PLUS_1 136
|
||||
#define IDD_DIALOG_MORE_INFO 137
|
||||
#define IDI_ICON_PROG_PINK 138
|
||||
#define IDI_ICON_PROG_DR 139
|
||||
#define IDB_BITMAP_BACKGROUND_1 139
|
||||
#define IDI_ICON_PROG_XB 140
|
||||
#define IDI_ICON_PROG_YB 141
|
||||
#define IDI_ICON_IDEA 142
|
||||
#define IDI_ICON_INFORMATION 143
|
||||
#define IDB_BITMAP_ERROR_FATAL 202
|
||||
#define IDD_DIALOG_ERROR 202
|
||||
#define IDB_BITMAP_ERROR_WARNING 203
|
||||
#define IDD_DIALOG_MORE_INFO1 203
|
||||
#define IDB_BITMAP_ERROR_UNKNOWN 204
|
||||
#define IDD_DIALOG_MORE_INFO2 204
|
||||
#define IDB_BITMAP_ERROR_INSTABLE 205
|
||||
#define IDD_DIALOG_MORE_INFO3 205
|
||||
#define IDB_PLUS_2 206
|
||||
#define IDD_DIALOG_MORE_INFO4 206
|
||||
#define IDB_PLUS_3 207
|
||||
#define IDD_DIALOG_MORE_INFO5 207
|
||||
#define IDB_PLUS_4 208
|
||||
#define IDB_PLUS_5 209
|
||||
#define IDB_PLUS_6 210
|
||||
#define IDB_PLUS_7 211
|
||||
#define IDB_PLUS_8 212
|
||||
#define IDB_BITMAP_BACKGROUND_2 213
|
||||
#define IDC_STATIC_MODULE_NAME 1001
|
||||
#define IDC_RADIO_REPORT_FILE 1002
|
||||
#define IDC_RADIO_REPORT_PRINTER 1003
|
||||
#define IDC_RADIO_REPORT_CLIPBOARD 1004
|
||||
#define IDC_STATIC_FILE 1005
|
||||
#define IDC_EDIT_FILE_NAME 1006
|
||||
#define IDC_BUTTON_FILE_BROWSE 1007
|
||||
#define IDC_STATIC_IMAGE 1009
|
||||
#define IDC_RADIO_REPORT_MAIL 1009
|
||||
#define IDC_STATIC_MORE_ON_MODULE 1011
|
||||
#define IDC_STATIC_MORE_ON_ACTION 1012
|
||||
#define IDC_TEXT_TITLE 1012
|
||||
#define IDC_STATIC_MORE_ON_DEBUG 1013
|
||||
#define IDC_MODULE_NAME 1013
|
||||
#define IDC_STATIC_MORE_ON_SCRIPT 1014
|
||||
#define IDC_MODULE_MAIN_NAME 1014
|
||||
#define IDC_STATIC_MORE_ON_ADDITIONNAL 1015
|
||||
#define IDC_MODULE_MAIN_PHONE 1015
|
||||
#define IDC_MODULE_SECOND_NAME 1016
|
||||
#define IDC_LIST_ADD_INFO 1016
|
||||
#define IDC_MODULE_MAIN_MAIL 1017
|
||||
#define IDC_FILE_NAME 1018
|
||||
#define IDC_MODULE_RESPONSIBLE_NAME 1018
|
||||
#define IDC_LINE_NUMBER 1019
|
||||
#define IDC_MODULE_SECOND_PHONE 1019
|
||||
#define IDC_FILE_DATE 1020
|
||||
#define IDC_MODULE_VERSION 1020
|
||||
#define IDC_ERROR_TYPE 1020
|
||||
#define IDC_MODULE_SECOND_MAIL 1021
|
||||
#define IDC_EXPLANATION 1021
|
||||
#define IDC_CURRENT_ACTION 1021
|
||||
#define IDC_FUNCTION 1021
|
||||
#define IDC_MODULE_RESPONSIBLE_PHONE 1022
|
||||
#define IDC_MODULE_RESPONSIBLE_MAIL 1023
|
||||
#define IDC_BUTTON_MAKE_REPORT 1024
|
||||
#define IDC_IMAGE 1026
|
||||
#define IDC_CHECK_MAIN_PROGRAMMER 1028
|
||||
#define IDC_CHECK_SECOND_PROGRAMMER 1029
|
||||
#define IDC_CHECK_RESPONSIBLE 1030
|
||||
#define IDC_CHECK_DELETE_FILE 1031
|
||||
#define IDC_EDIT_USER_ADDS 1032
|
||||
#define IDC_STATIC_ADD_COMMENTS 1033
|
||||
#define IDC_TEXT_FILE_NAME 1142
|
||||
#define IDC_TEXT_SCRIPT_FILE_NAME 1144
|
||||
#define IDC_TEXT_ERROR_GRAVITY 1146
|
||||
#define IDC_TEXT_ERROR_MORE_INFO 1147
|
||||
#define IDC_TEXT_CURRENT_ACTION 1148
|
||||
#define IDC_TEXT_FUNCTION 1151
|
||||
#define IDC_BUTTON_OPEN_SCRIPT 1156
|
||||
#define IDC_BUTTON_OPEN_SOURCE 1157
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 141
|
||||
#define _APS_NEXT_COMMAND_VALUE 32771
|
||||
#define _APS_NEXT_CONTROL_VALUE 1034
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
41
Rayman_X/cpa/tempgrp/ERO/Inc/StdAfx.h
Normal file
@@ -0,0 +1,41 @@
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently, but
|
||||
// are changed infrequently
|
||||
//
|
||||
|
||||
#if !defined(AFX_STDAFX_H__3CB795CD_F6C0_11D0_B56C_006097828C2B__INCLUDED_)
|
||||
#define AFX_STDAFX_H__3CB795CD_F6C0_11D0_B56C_006097828C2B__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
||||
|
||||
#include <afxwin.h> // MFC core and standard components
|
||||
#include <afxext.h> // MFC extensions
|
||||
|
||||
#ifndef _AFX_NO_OLE_SUPPORT
|
||||
#include <afxole.h> // MFC OLE classes
|
||||
#include <afxodlgs.h> // MFC OLE dialog classes
|
||||
#include <afxdisp.h> // MFC OLE automation classes
|
||||
#endif // _AFX_NO_OLE_SUPPORT
|
||||
|
||||
|
||||
#ifndef _AFX_NO_DB_SUPPORT
|
||||
#include <afxdb.h> // MFC ODBC database classes
|
||||
#endif // _AFX_NO_DB_SUPPORT
|
||||
|
||||
#ifndef _AFX_NO_DAO_SUPPORT
|
||||
#include <afxdao.h> // MFC DAO database classes
|
||||
#endif // _AFX_NO_DAO_SUPPORT
|
||||
|
||||
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
||||
#include <afxcmn.h> // MFC support for Windows Common Controls
|
||||
#endif // _AFX_NO_AFXCMN_SUPPORT
|
||||
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_STDAFX_H__3CB795CD_F6C0_11D0_B56C_006097828C2B__INCLUDED_)
|
342
Rayman_X/cpa/tempgrp/ERO/Make/ErO.dsp
Normal file
@@ -0,0 +1,342 @@
|
||||
# Microsoft Developer Studio Project File - Name="Err" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 5.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
|
||||
|
||||
CFG=Err - Win32 Release
|
||||
!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 "ErO.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 "ErO.mak" CFG="Err - Win32 Release"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "Err - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "Err - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP Scc_ProjName ""$/cpa/tempgrp/ERO/make", UNCAAAAA"
|
||||
# PROP Scc_LocalPath "."
|
||||
CPP=cl.exe
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "Err - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 6
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 6
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "x:\cpa\exe\main\edt_data"
|
||||
# PROP Intermediate_Dir "..\Temp\Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WINDLL" /D "_AFXDLL" /Yu"stdafx.h" /FD /c
|
||||
# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\inc" /I "x:\cpa\public" /I "x:\cpa\public\ero" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_WINDLL" /D "_AFXDLL" /D "_USRDLL" /D "VISUAL" /Yu"stdafx.h" /FD /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
|
||||
# ADD BASE RSC /l 0x40c /d "NDEBUG" /d "_AFXDLL"
|
||||
# ADD RSC /l 0x40c /d "NDEBUG" /d "_AFXDLL"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 /nologo /subsystem:windows /dll /machine:I386
|
||||
# ADD LINK32 /nologo /subsystem:windows /dll /incremental:yes /machine:I386 /out:"x:\cpa\exe\main\edt_data\ErO___vr.dll"
|
||||
# SUBTRACT LINK32 /pdb:none /force
|
||||
|
||||
!ELSEIF "$(CFG)" == "Err - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 6
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 6
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "x:\cpa\exe\main\edt_data"
|
||||
# PROP Intermediate_Dir "..\Temp\Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_WINDLL" /D "_AFXDLL" /Yu"stdafx.h" /FD /c
|
||||
# ADD CPP /nologo /MD /W3 /GX /Z7 /Od /I "..\inc" /I "x:\cpa\public" /I "x:\cpa\public\ErO" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_WINDLL" /D "_AFXDLL" /D "_USRDLL" /D "VISUAL" /FR /Yu"stdafx.h" /FD /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
|
||||
# ADD BASE RSC /l 0x40c /d "_DEBUG" /d "_AFXDLL"
|
||||
# ADD RSC /l 0x40c /i "..\res" /d "_DEBUG" /d "_AFXDLL"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 /nologo /subsystem:windows /dll /debug /machine:I386 /nodefaultlib:"msvcrtd.lib" /out:"x:\cpa\exe\main\edt_data\ErO___vd.dll" /pdbtype:sept
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "Err - Win32 Release"
|
||||
# Name "Err - Win32 Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Src\_DLLCom.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Src\ErO.def
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Src\ErO_DgEr.cpp
|
||||
|
||||
!IF "$(CFG)" == "Err - Win32 Release"
|
||||
|
||||
# ADD CPP /I "x:\cpa\public\ErO"
|
||||
|
||||
!ELSEIF "$(CFG)" == "Err - Win32 Debug"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Src\ErO_DgIf.cpp
|
||||
# ADD CPP /I "X:\Cpa\TempGrp\ERO\Inc"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Src\ErO_Op.cpp
|
||||
|
||||
!IF "$(CFG)" == "Err - Win32 Release"
|
||||
|
||||
# ADD CPP /I "x:\cpa\public\ErO"
|
||||
|
||||
!ELSEIF "$(CFG)" == "Err - Win32 Debug"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Src\ErO_Priv.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Src\ErO_Stat.cpp
|
||||
# ADD CPP /I "X:\Cpa\TempGrp\ERO\Inc"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Src\ErOReprt.cpp
|
||||
|
||||
!IF "$(CFG)" == "Err - Win32 Release"
|
||||
|
||||
# ADD CPP /I "X:\Cpa\TempGrp\ErO\Inc" /I "x:\cpa\public\ErO"
|
||||
|
||||
!ELSEIF "$(CFG)" == "Err - Win32 Debug"
|
||||
|
||||
# ADD CPP /I "X:\Cpa\TempGrp\ErO\Inc"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Src\ErOTeam.cpp
|
||||
|
||||
!IF "$(CFG)" == "Err - Win32 Release"
|
||||
|
||||
# ADD CPP /I "X:\Cpa\TempGrp\ErO\Inc" /I "x:\cpa\public\ErO"
|
||||
|
||||
!ELSEIF "$(CFG)" == "Err - Win32 Debug"
|
||||
|
||||
# ADD CPP /I "X:\Cpa\TempGrp\ErO\Inc"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Src\StdAfx.cpp
|
||||
# ADD CPP /Yc"stdafx.h"
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\Public\ErO\ErO_DgEr.hpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Inc\ErO_DgIf.hpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\Public\ErO\ErO_Err.hpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\Public\ErO\ErO_Op.hpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Inc\ErO_Res.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\Public\ERO\ErO_Stat.hpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Inc\ErOReprt.hpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Inc\ErOTeam.hpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Inc\StdAfx.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Resource Files"
|
||||
|
||||
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe"
|
||||
# Begin Group "Dependencies"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\bitmap1.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\bitmap2.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\bitmap3.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\bitmap_b.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\bitmap_e.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\bmp00001.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\bmp00002.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\bmp00003.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\bmp00004.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\ico00001.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\icon1.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\icon2.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\icon3.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\icon4.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\icon5.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\icon6.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\icon_ema.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\icon_nam.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\icon_sec.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\icon_tel.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\plus_2.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\plus_3.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\plus_4.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\plus_5.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\plus_6.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\plus_7.bmp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Res\plus_8.bmp
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Inc\ErO.rc
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ErO.mak
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
485
Rayman_X/cpa/tempgrp/ERO/Make/ErO.vcproj
Normal file
@@ -0,0 +1,485 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.10"
|
||||
Name="Err"
|
||||
ProjectGUID="{CE264E46-8303-41FB-B010-5B3C08797771}"
|
||||
SccProjectName=""$/cpa/tempgrp/ERO/make", UNCAAAAA"
|
||||
SccLocalPath="."
|
||||
Keyword="MFCProj">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="x:\cpa\exe\main\edt_data"
|
||||
IntermediateDirectory=".\..\Temp\Debug"
|
||||
ConfigurationType="2"
|
||||
UseOfMFC="2"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\inc,x:\cpa\public,x:\cpa\public\ErO"
|
||||
PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS;_USRDLL;VISUAL"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="3"
|
||||
PrecompiledHeaderThrough="stdafx.h"
|
||||
PrecompiledHeaderFile=".\..\Temp\Debug/ErO.pch"
|
||||
AssemblerListingLocation=".\..\Temp\Debug/"
|
||||
ObjectFile=".\..\Temp\Debug/"
|
||||
ProgramDataBaseFileName=".\..\Temp\Debug/"
|
||||
BrowseInformation="1"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"
|
||||
DebugInformationFormat="1"
|
||||
CompileAs="0"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="x:\cpa\exe\main\edt_data\ErO___vd.dll"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="TRUE"
|
||||
IgnoreDefaultLibraryNames=""
|
||||
ModuleDefinitionFile="..\Src\ErO.def"
|
||||
GenerateDebugInformation="TRUE"
|
||||
ProgramDatabaseFile="x:\cpa\exe\main\edt_data/ErO___vd.pdb"
|
||||
SubSystem="2"
|
||||
ImportLibrary="x:\cpa\exe\main\edt_data/ErO___vd.lib"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="_DEBUG"
|
||||
MkTypLibCompatible="TRUE"
|
||||
SuppressStartupBanner="TRUE"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName="x:\cpa\exe\main\edt_data/ErO.tlb"
|
||||
HeaderFileName=""/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="_DEBUG"
|
||||
Culture="1036"
|
||||
AdditionalIncludeDirectories="..\res"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="x:\cpa\exe\main\edt_data"
|
||||
IntermediateDirectory=".\..\Temp\Release"
|
||||
ConfigurationType="2"
|
||||
UseOfMFC="2"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="..\inc,x:\cpa\public,x:\cpa\public\ero"
|
||||
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;_USRDLL;VISUAL"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="TRUE"
|
||||
UsePrecompiledHeader="3"
|
||||
PrecompiledHeaderThrough="stdafx.h"
|
||||
PrecompiledHeaderFile=".\..\Temp\Release/ErO.pch"
|
||||
AssemblerListingLocation=".\..\Temp\Release/"
|
||||
ObjectFile=".\..\Temp\Release/"
|
||||
ProgramDataBaseFileName=".\..\Temp\Release/"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"
|
||||
CompileAs="0"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="x:\cpa\exe\main\edt_data\ErO___vr.dll"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="TRUE"
|
||||
ModuleDefinitionFile="..\Src\ErO.def"
|
||||
ProgramDatabaseFile="x:\cpa\exe\main\edt_data/ErO___vr.pdb"
|
||||
SubSystem="2"
|
||||
ImportLibrary="x:\cpa\exe\main\edt_data/ErO___vr.lib"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
MkTypLibCompatible="TRUE"
|
||||
SuppressStartupBanner="TRUE"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName="x:\cpa\exe\main\edt_data/ErO.tlb"
|
||||
HeaderFileName=""/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1036"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
|
||||
<File
|
||||
RelativePath="..\Src\_DLLCom.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Src\ErO.def">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Src\ErO_DgEr.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories="x:\cpa\public\ErO"
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Src\ErO_DgIf.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="X:\Cpa\TempGrp\ERO\Inc"
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories="X:\Cpa\TempGrp\ERO\Inc"
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Src\ErO_Op.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories="x:\cpa\public\ErO"
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Src\ErO_Priv.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Src\ErO_Stat.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="X:\Cpa\TempGrp\ERO\Inc"
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories="X:\Cpa\TempGrp\ERO\Inc"
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Src\ErOReprt.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="X:\Cpa\TempGrp\ErO\Inc"
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories="X:\Cpa\TempGrp\ErO\Inc;x:\cpa\public\ErO"
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Src\ErOTeam.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="X:\Cpa\TempGrp\ErO\Inc"
|
||||
PreprocessorDefinitions=""
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories="X:\Cpa\TempGrp\ErO\Inc;x:\cpa\public\ErO"
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Src\StdAfx.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
UsePrecompiledHeader="1"
|
||||
BrowseInformation="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
UsePrecompiledHeader="1"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl">
|
||||
<File
|
||||
RelativePath="..\..\..\Public\ErO\ErO_DgEr.hpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Inc\ErO_DgIf.hpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\Public\ErO\ErO_Err.hpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\Public\ErO\ErO_Op.hpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Inc\ErO_Res.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\Public\ERO\ErO_Stat.hpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Inc\ErOReprt.hpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Inc\ErOTeam.hpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Inc\StdAfx.h">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe">
|
||||
<File
|
||||
RelativePath="..\Inc\ErO.rc">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions=""
|
||||
AdditionalIncludeDirectories="\Rayman2\N64\CD5\VA\cpa\tempgrp\ERO\Inc"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions=""
|
||||
AdditionalIncludeDirectories="\Rayman2\N64\CD5\VA\cpa\tempgrp\ERO\Inc"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<Filter
|
||||
Name="Dependencies"
|
||||
Filter="">
|
||||
<File
|
||||
RelativePath="..\Res\bitmap1.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\bitmap2.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\bitmap3.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\bitmap_b.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\bitmap_e.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\bmp00001.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\bmp00002.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\bmp00003.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\bmp00004.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\ico00001.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\icon1.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\icon2.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\icon3.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\icon4.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\icon5.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\icon6.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\icon_ema.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\icon_nam.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\icon_sec.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\icon_tel.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\plus_2.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\plus_3.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\plus_4.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\plus_5.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\plus_6.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\plus_7.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\Res\plus_8.bmp">
|
||||
</File>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath="ErO.mak">
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
5
Rayman_X/cpa/tempgrp/ERO/Make/ErO_copy.bat
Normal file
@@ -0,0 +1,5 @@
|
||||
echo off
|
||||
copy x:\cpa\Exe\main\Edt_Data\ErO___vd.dll l:\shadow\cpa_edit\exe\main\edt_data\*.*
|
||||
copy x:\cpa\Exe\main\Edt_Data\ErO___vd.lib l:\shadow\cpa_edit\exe\main\edt_data\*.*
|
||||
copy x:\cpa\Exe\main\Edt_Data\ErO___vd.pdb l:\shadow\cpa_edit\exe\main\edt_data\*.*
|
||||
echo Copies OK !
|
5
Rayman_X/cpa/tempgrp/ERO/Make/mssccprj.scc
Normal file
@@ -0,0 +1,5 @@
|
||||
SCC = This is a source code control file
|
||||
|
||||
[ErO.vcproj]
|
||||
SCC_Aux_Path = "P4SCC#srvperforce-ma:1666##raymandata##Editor"
|
||||
SCC_Project_Name = Perforce Project
|
13
Rayman_X/cpa/tempgrp/ERO/Res/ErO.rc2
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// ERR.RC2 - resources Microsoft Visual C++ does not edit directly
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ErOor this file is not editable by Microsoft Visual C++
|
||||
#endif //APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Add manually edited resources here...
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
BIN
Rayman_X/cpa/tempgrp/ERO/Res/ico00001.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/ERO/Res/icon1.ico
Normal file
After Width: | Height: | Size: 766 B |
BIN
Rayman_X/cpa/tempgrp/ERO/Res/icon2.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/ERO/Res/icon3.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/ERO/Res/icon4.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/ERO/Res/icon5.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/ERO/Res/icon6.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/ERO/Res/icon_ema.ico
Normal file
After Width: | Height: | Size: 766 B |
BIN
Rayman_X/cpa/tempgrp/ERO/Res/icon_nam.ico
Normal file
After Width: | Height: | Size: 766 B |
BIN
Rayman_X/cpa/tempgrp/ERO/Res/icon_sec.ico
Normal file
After Width: | Height: | Size: 766 B |
BIN
Rayman_X/cpa/tempgrp/ERO/Res/icon_tel.ico
Normal file
After Width: | Height: | Size: 766 B |
18
Rayman_X/cpa/tempgrp/ERO/Src/ErO.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
// Err.cpp : Defines the initialization routines for the DLL.
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#include "StdAfx.h"
|
||||
|
||||
|
||||
#undef CPA_WANTS_IMPORT
|
||||
#undef CPA_EXPORT
|
||||
#define CPA_WANTS_EXPORT
|
||||
#include "ERR_Err.hpp"
|
||||
#undef CPA_WANTS_EXPORT
|
||||
#define CPA_WANTS_IMPORT
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
10
Rayman_X/cpa/tempgrp/ERO/Src/ErO.def
Normal file
@@ -0,0 +1,10 @@
|
||||
; Err.def : Declares the module parameters for the DLL.
|
||||
|
||||
LIBRARY
|
||||
|
||||
DESCRIPTION 'Err Windows Dynamic Link Library'
|
||||
|
||||
EXPORTS
|
||||
; Explicit exports can go here
|
||||
ERO_fn_vInitModule
|
||||
|
570
Rayman_X/cpa/tempgrp/ERO/Src/ErOReprt.cpp
Normal file
@@ -0,0 +1,570 @@
|
||||
// ErOReprt.cpp : implementation file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "ErOReprt.hpp"
|
||||
|
||||
#include "ErO_Op.hpp"
|
||||
#include "ErOTeam.hpp"
|
||||
|
||||
#include <mapi.h>
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
extern HMODULE g_hModule;
|
||||
extern CString g_csModuleName;
|
||||
|
||||
HINSTANCE h_MAPI_DLL = NULL;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ErrorOperator_DialogReport dialog
|
||||
|
||||
BEGIN_MESSAGE_MAP(ErrorOperator_DialogReport, CDialog)
|
||||
//{{AFX_MSG_MAP(ErrorOperator_DialogReport)
|
||||
ON_BN_CLICKED(IDC_BUTTON_FILE_BROWSE, OnButtonFileBrowse)
|
||||
ON_BN_CLICKED(IDC_RADIO_REPORT_CLIPBOARD, OnRadioReportClipboard)
|
||||
ON_BN_CLICKED(IDC_RADIO_REPORT_FILE, OnRadioReportFile)
|
||||
ON_BN_CLICKED(IDC_RADIO_REPORT_PRINTER, OnRadioReportPrinter)
|
||||
ON_BN_CLICKED(IDC_RADIO_REPORT_MAIL, OnRadioReportMail)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
//***************************************************************************
|
||||
ErrorOperator_DialogReport::ErrorOperator_DialogReport(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(IDD_DIALOG_REPORT, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(ErrorOperator_DialogReport)
|
||||
m_iChosenReportType = 3;
|
||||
m_csFileName = _T("");
|
||||
m_bSendToMainProgrammer = TRUE;
|
||||
m_bSendToSecondProgrammer = FALSE;
|
||||
m_bSendToResponsible = FALSE;
|
||||
m_bDeleteReport = FALSE;
|
||||
m_csAddedComments = _T("");
|
||||
//}}AFX_DATA_INIT
|
||||
|
||||
//Initializing file name
|
||||
char a_cBuffer[MAX_PATH];
|
||||
GetModuleFileName(g_hModule, a_cBuffer, MAX_PATH);
|
||||
m_csFileName = a_cBuffer;
|
||||
|
||||
short wIndex = m_csFileName.ReverseFind('\\');
|
||||
if ( wIndex != -1 )
|
||||
m_csFileName = m_csFileName.Left(wIndex + 1);
|
||||
|
||||
if ( g_csModuleName.IsEmpty() )
|
||||
m_csFileName += "Error_Report.txt";
|
||||
else
|
||||
{
|
||||
//Computes date
|
||||
SYSTEMTIME stSystemTime;
|
||||
::GetLocalTime(&stSystemTime);
|
||||
CTime cTime(stSystemTime);
|
||||
CString csDate = cTime.Format("_%b_%d");
|
||||
|
||||
CString csFileName = CString("Rprt_") + g_csModuleName + csDate + ".txt";
|
||||
|
||||
m_csFileName += csFileName;
|
||||
}
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErrorOperator_DialogReport::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(ErrorOperator_DialogReport)
|
||||
DDX_Radio(pDX, IDC_RADIO_REPORT_FILE, m_iChosenReportType);
|
||||
DDX_Text(pDX, IDC_EDIT_FILE_NAME, m_csFileName);
|
||||
DDX_Check(pDX, IDC_CHECK_MAIN_PROGRAMMER, m_bSendToMainProgrammer);
|
||||
DDX_Check(pDX, IDC_CHECK_SECOND_PROGRAMMER, m_bSendToSecondProgrammer);
|
||||
DDX_Check(pDX, IDC_CHECK_RESPONSIBLE, m_bSendToResponsible);
|
||||
DDX_Check(pDX, IDC_CHECK_DELETE_FILE, m_bDeleteReport);
|
||||
DDX_Text(pDX, IDC_EDIT_USER_ADDS, m_csAddedComments);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ErrorOperator_DialogReport message handlers
|
||||
|
||||
//***************************************************************************
|
||||
BOOL ErrorOperator_DialogReport::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
OnRadioReportMail();
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErrorOperator_DialogReport::OnOK()
|
||||
{
|
||||
UpdateData(TRUE);
|
||||
|
||||
switch ( m_iChosenReportType )
|
||||
{
|
||||
case 0:
|
||||
m_pri_fn_vSaveFile();
|
||||
break;
|
||||
case 1:
|
||||
m_pri_fn_vPrint();
|
||||
break;
|
||||
case 2:
|
||||
m_pri_fn_vCopyToClipboard();
|
||||
break;
|
||||
case 3:
|
||||
m_pri_fn_vSendByMail();
|
||||
break;
|
||||
}
|
||||
|
||||
CDialog::OnOK();
|
||||
}
|
||||
|
||||
// Private Functions
|
||||
////////////////////////
|
||||
|
||||
//***************************************************************************
|
||||
void ErrorOperator_DialogReport::m_pri_fn_vSaveFile()
|
||||
{
|
||||
CStdioFile clFile;
|
||||
|
||||
const CString csSpacing = " ";
|
||||
const CString g_c_csUnknownn = "< Unknown >";
|
||||
const CString g_c_csNone = "< None >";
|
||||
|
||||
if ( clFile.Open(m_csFileName, CFile::modeReadWrite | CFile::modeCreate | CFile::modeNoTruncate | CFile::typeText) )
|
||||
{
|
||||
clFile.WriteString("##################################\n");
|
||||
clFile.WriteString("# Error Operator making a report #\n");
|
||||
clFile.WriteString("##################################\n");
|
||||
clFile.WriteString("\n");
|
||||
|
||||
//Computes date
|
||||
SYSTEMTIME stSystemTime;
|
||||
::GetLocalTime(&stSystemTime);
|
||||
CTime cTime(stSystemTime);
|
||||
CString csDate = cTime.Format("Date : %A, %B %d, %Y, %Hh%Mm \n");
|
||||
clFile.WriteString(csDate);
|
||||
clFile.WriteString("\n");
|
||||
|
||||
clFile.WriteString("Error has been detected in Module :\n");
|
||||
CString csCurrentLine = csSpacing + (g_csModuleName.IsEmpty() ? g_c_csUnknownn : g_csModuleName) + "\n";
|
||||
clFile.WriteString(csCurrentLine);
|
||||
|
||||
clFile.WriteString("Error level was :\n");
|
||||
switch ( g_eErrorGravity )
|
||||
{
|
||||
case E_ERROR_GRAVITY_WARNING:
|
||||
csCurrentLine = csSpacing + "Warning\n";
|
||||
break;
|
||||
case E_ERROR_GRAVITY_INSTABLE:
|
||||
csCurrentLine = csSpacing + "Instable\n";
|
||||
break;
|
||||
case E_ERROR_GRAVITY_FATAL:
|
||||
csCurrentLine = csSpacing + "Fatal\n";
|
||||
break;
|
||||
default:
|
||||
csCurrentLine = csSpacing + g_c_csUnknownn + "\n";
|
||||
break;
|
||||
}
|
||||
clFile.WriteString(csCurrentLine);
|
||||
|
||||
clFile.WriteString("\n");
|
||||
clFile.WriteString("Current action was :\n");
|
||||
csCurrentLine = csSpacing + (g_csCurrentAction.IsEmpty() ? g_c_csUnknownn : g_csCurrentAction) + "\n";
|
||||
clFile.WriteString(csCurrentLine);
|
||||
|
||||
clFile.WriteString("\n");
|
||||
clFile.WriteString("Calling function was :\n");
|
||||
csCurrentLine = csSpacing + (g_csCurrentFunction.IsEmpty() ? g_c_csUnknownn : g_csCurrentFunction) + "\n";
|
||||
clFile.WriteString(csCurrentLine);
|
||||
|
||||
clFile.WriteString("In source :\n");
|
||||
csCurrentLine = csSpacing + (g_csCurrentFileName.IsEmpty() ? g_c_csUnknownn : g_csCurrentFileName) + "\n";
|
||||
clFile.WriteString(csCurrentLine);
|
||||
|
||||
clFile.WriteString("At line :\n");
|
||||
csCurrentLine.Format("%i", g_wCurrentFileLine);
|
||||
csCurrentLine = csSpacing + (g_wCurrentFileLine < 0 ? g_c_csUnknownn : csCurrentLine) + "\n";
|
||||
clFile.WriteString(csCurrentLine);
|
||||
|
||||
clFile.WriteString("\n");
|
||||
clFile.WriteString("Additionnal informations were :\n");
|
||||
csCurrentLine = csSpacing + (g_csAddedInfo.IsEmpty() ? g_c_csNone : g_csAddedInfo) + "\n";
|
||||
clFile.WriteString(csCurrentLine);
|
||||
|
||||
clFile.WriteString("\n");
|
||||
clFile.WriteString("Script in progress :\n");
|
||||
csCurrentLine = csSpacing + (g_csCurrentScriptFileName.IsEmpty() ? g_c_csNone : g_csCurrentScriptFileName) + "\n";
|
||||
clFile.WriteString(csCurrentLine);
|
||||
|
||||
clFile.WriteString("At line :\n");
|
||||
csCurrentLine.Format("%i", g_wCurrentScriptLine);
|
||||
csCurrentLine = csSpacing + (g_wCurrentScriptLine <= 0 ? g_c_csUnknownn : csCurrentLine) + "\n";
|
||||
clFile.WriteString(csCurrentLine);
|
||||
|
||||
clFile.WriteString("\n");
|
||||
clFile.WriteString("----------------------------------------------------------------------\n");
|
||||
clFile.WriteString("\n");
|
||||
|
||||
clFile.Close();
|
||||
}
|
||||
else
|
||||
MessageBox("Error Operator cannot open the file to write its report !", "Error Operator - Error", MB_OK|MB_ICONSTOP);
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErrorOperator_DialogReport::m_pri_fn_vPrint()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErrorOperator_DialogReport::m_pri_fn_vCopyToClipboard()
|
||||
{
|
||||
const CString csSpacing = " ";
|
||||
const CString g_c_csUnknownn = "< Unknown >";
|
||||
const CString g_c_csNone = "< None >";
|
||||
CString csGlobalText;
|
||||
|
||||
csGlobalText += "##################################\n";
|
||||
csGlobalText += "# Error Operator making a report #\n";
|
||||
csGlobalText += "##################################\n";
|
||||
csGlobalText += "\n";
|
||||
|
||||
//Computes date
|
||||
SYSTEMTIME stSystemTime;
|
||||
::GetLocalTime(&stSystemTime);
|
||||
CTime cTime(stSystemTime);
|
||||
CString csDate = cTime.Format("Date : %A, %B %d, %Y, %Hh%Mm \n");
|
||||
csGlobalText += csDate;
|
||||
csGlobalText += "\n";
|
||||
|
||||
csGlobalText += "Error has been detected in Module :\n";
|
||||
CString csCurrentLine = csSpacing + (g_csModuleName.IsEmpty() ? g_c_csUnknownn : g_csModuleName) + "\n";
|
||||
csGlobalText += csCurrentLine;
|
||||
|
||||
csGlobalText += "Error level was :\n";
|
||||
switch ( g_eErrorGravity )
|
||||
{
|
||||
case E_ERROR_GRAVITY_WARNING:
|
||||
csCurrentLine = csSpacing + "Warning\n";
|
||||
break;
|
||||
case E_ERROR_GRAVITY_INSTABLE:
|
||||
csCurrentLine = csSpacing + "Instable\n";
|
||||
break;
|
||||
case E_ERROR_GRAVITY_FATAL:
|
||||
csCurrentLine = csSpacing + "Fatal\n";
|
||||
break;
|
||||
default:
|
||||
csCurrentLine = csSpacing + g_c_csUnknownn + "\n";
|
||||
break;
|
||||
}
|
||||
csGlobalText += csCurrentLine;
|
||||
|
||||
csGlobalText += "\n";
|
||||
csGlobalText += "Current action was :\n";
|
||||
csCurrentLine = csSpacing + (g_csCurrentAction.IsEmpty() ? g_c_csUnknownn : g_csCurrentAction) + "\n";
|
||||
csGlobalText += csCurrentLine;
|
||||
|
||||
csGlobalText += "\n";
|
||||
csGlobalText += "Calling function was :\n";
|
||||
csCurrentLine = csSpacing + (g_csCurrentFunction.IsEmpty() ? g_c_csUnknownn : g_csCurrentFunction) + "\n";
|
||||
csGlobalText += csCurrentLine;
|
||||
|
||||
csGlobalText += "In source :\n";
|
||||
csCurrentLine = csSpacing + (g_csCurrentFileName.IsEmpty() ? g_c_csUnknownn : g_csCurrentFileName) + "\n";
|
||||
csGlobalText += csCurrentLine;
|
||||
|
||||
csGlobalText += "At line :\n";
|
||||
csCurrentLine.Format("%i", g_wCurrentFileLine);
|
||||
csCurrentLine = csSpacing + (g_wCurrentFileLine < 0 ? g_c_csUnknownn : csCurrentLine) + "\n";
|
||||
csGlobalText += csCurrentLine;
|
||||
|
||||
csGlobalText += "\n";
|
||||
csGlobalText += "Additionnal informations were :\n";
|
||||
csCurrentLine = csSpacing + (g_csAddedInfo.IsEmpty() ? g_c_csNone : g_csAddedInfo) + "\n";
|
||||
csGlobalText += csCurrentLine;
|
||||
|
||||
csGlobalText += "\n";
|
||||
csGlobalText += "Script in progress :\n";
|
||||
csCurrentLine = csSpacing + (g_csCurrentScriptFileName.IsEmpty() ? g_c_csNone : g_csCurrentScriptFileName) + "\n";
|
||||
csGlobalText += csCurrentLine;
|
||||
|
||||
csGlobalText += "At line :\n";
|
||||
csCurrentLine.Format("%i", g_wCurrentScriptLine);
|
||||
csCurrentLine = csSpacing + (g_wCurrentScriptLine <= 0 ? g_c_csUnknownn : csCurrentLine) + "\n";
|
||||
csGlobalText += csCurrentLine;
|
||||
|
||||
csGlobalText += "\n";
|
||||
csGlobalText += "----------------------------------------------------------------------\n";
|
||||
csGlobalText += "\n";
|
||||
|
||||
m_pri_fn_vCopyIntoClipBoard(csGlobalText);
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErrorOperator_DialogReport::OnButtonFileBrowse()
|
||||
{
|
||||
CFileDialog cfFileDial(TRUE);
|
||||
|
||||
if ( cfFileDial.DoModal() == IDOK )
|
||||
{
|
||||
m_csFileName = cfFileDial.GetPathName();
|
||||
|
||||
UpdateData(FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErrorOperator_DialogReport::OnRadioReportClipboard()
|
||||
{
|
||||
GetDlgItem(IDC_STATIC_FILE)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_EDIT_FILE_NAME)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_BUTTON_FILE_BROWSE)->ShowWindow(SW_HIDE);
|
||||
|
||||
GetDlgItem(IDC_CHECK_MAIN_PROGRAMMER)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_CHECK_SECOND_PROGRAMMER)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_CHECK_RESPONSIBLE)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_CHECK_DELETE_FILE)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_STATIC_ADD_COMMENTS)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_EDIT_USER_ADDS)->ShowWindow(SW_HIDE);
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErrorOperator_DialogReport::OnRadioReportFile()
|
||||
{
|
||||
GetDlgItem(IDC_STATIC_FILE)->ShowWindow(SW_SHOW);
|
||||
GetDlgItem(IDC_EDIT_FILE_NAME)->ShowWindow(SW_SHOW);
|
||||
GetDlgItem(IDC_BUTTON_FILE_BROWSE)->ShowWindow(SW_SHOW);
|
||||
|
||||
GetDlgItem(IDC_CHECK_MAIN_PROGRAMMER)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_CHECK_SECOND_PROGRAMMER)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_CHECK_RESPONSIBLE)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_CHECK_DELETE_FILE)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_STATIC_ADD_COMMENTS)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_EDIT_USER_ADDS)->ShowWindow(SW_HIDE);
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErrorOperator_DialogReport::OnRadioReportPrinter()
|
||||
{
|
||||
GetDlgItem(IDC_STATIC_FILE)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_EDIT_FILE_NAME)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_BUTTON_FILE_BROWSE)->ShowWindow(SW_HIDE);
|
||||
|
||||
GetDlgItem(IDC_CHECK_MAIN_PROGRAMMER)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_CHECK_SECOND_PROGRAMMER)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_CHECK_RESPONSIBLE)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_CHECK_DELETE_FILE)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_STATIC_ADD_COMMENTS)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_EDIT_USER_ADDS)->ShowWindow(SW_HIDE);
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErrorOperator_DialogReport::OnRadioReportMail()
|
||||
{
|
||||
GetDlgItem(IDC_CHECK_MAIN_PROGRAMMER)->ShowWindow(SW_SHOW);
|
||||
GetDlgItem(IDC_CHECK_SECOND_PROGRAMMER)->ShowWindow(SW_SHOW);
|
||||
GetDlgItem(IDC_CHECK_RESPONSIBLE)->ShowWindow(SW_SHOW);
|
||||
GetDlgItem(IDC_CHECK_DELETE_FILE)->ShowWindow(SW_SHOW);
|
||||
GetDlgItem(IDC_STATIC_ADD_COMMENTS)->ShowWindow(SW_SHOW);
|
||||
GetDlgItem(IDC_EDIT_USER_ADDS)->ShowWindow(SW_SHOW);
|
||||
|
||||
GetDlgItem(IDC_STATIC_FILE)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_EDIT_FILE_NAME)->ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_BUTTON_FILE_BROWSE)->ShowWindow(SW_HIDE);
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErrorOperator_DialogReport::m_pri_fn_vCopyIntoClipBoard(CString csText)
|
||||
{
|
||||
if( OpenClipboard() )
|
||||
{
|
||||
if( EmptyClipboard() )
|
||||
{
|
||||
long lSize=csText.GetLength();
|
||||
HANDLE hText=GlobalAlloc(GMEM_MOVEABLE|GMEM_DDESHARE,lSize+1);
|
||||
|
||||
if( hText != NULL )
|
||||
{
|
||||
LPVOID pvText=GlobalLock(hText);
|
||||
|
||||
if( pvText != NULL )
|
||||
{
|
||||
CopyMemory(pvText, LPCTSTR(csText), lSize+1);
|
||||
|
||||
HANDLE hRes = SetClipboardData(CF_TEXT, hText);
|
||||
|
||||
if( hRes == NULL )
|
||||
MessageBox("Can't set clipboard data");
|
||||
|
||||
GlobalUnlock(hText);
|
||||
}
|
||||
else
|
||||
MessageBox("Can't lock memory for clipboard operation");
|
||||
}
|
||||
else
|
||||
MessageBox("Can't alloc memory for clipboard");
|
||||
}
|
||||
else
|
||||
MessageBox("Can't empty clipboard");
|
||||
|
||||
CloseClipboard();
|
||||
}
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErrorOperator_DialogReport::m_pri_fn_vSendByMail()
|
||||
{
|
||||
AfxGetApp()->DoWaitCursor(1);
|
||||
|
||||
if ( h_MAPI_DLL == NULL )
|
||||
{
|
||||
h_MAPI_DLL = LoadLibrary("MAPI32.dll");
|
||||
|
||||
if ( h_MAPI_DLL == NULL )
|
||||
MessageBox("No mail will be sent !", "ErO Module Error !!", MB_ICONSTOP);
|
||||
}
|
||||
|
||||
if ( h_MAPI_DLL != NULL )
|
||||
{
|
||||
// Get the addresses of all the API's supported by this object
|
||||
// m_MAPILogon = ( LPMAPILOGON ) GetProcAddress ( hlibMAPI, "MAPILogon" );
|
||||
// m_MAPISendDocuments = ( LPMAPISENDDOCUMENTS ) GetProcAddress ( hlibMAPI, "MAPISendDocuments" );
|
||||
// m_MAPIFindNext = ( LPMAPIFINDNEXT ) GetProcAddress ( hlibMAPI, "MAPIFindNext" );
|
||||
// m_MAPIReadMail = ( LPMAPIREADMAIL ) GetProcAddress ( hlibMAPI, "MAPIReadMail" );
|
||||
// m_MAPIAddress = ( LPMAPIADDRESS ) GetProcAddress ( hlibMAPI, "MAPIAddress" );
|
||||
// m_MAPILogoff = ( LPMAPILOGOFF ) GetProcAddress ( hlibMAPI, "MAPILogoff" );
|
||||
// m_MAPIFreeBuffer = ( LPMAPIFREEBUFFER ) GetProcAddress ( hlibMAPI, "MAPIFreeBuffer" );
|
||||
// m_MAPIDetails = ( LPMAPIDETAILS ) GetProcAddress ( hlibMAPI, "MAPIDetails" );
|
||||
// m_MAPISaveMail = ( LPMAPISAVEMAIL ) GetProcAddress ( hlibMAPI, "MAPISaveMail" );
|
||||
LPMAPIRESOLVENAME p_fn_MAPIResolveName = (LPMAPIRESOLVENAME)GetProcAddress(h_MAPI_DLL, "MAPIResolveName");
|
||||
LPMAPISENDMAIL p_fn_MAPISendMail = (LPMAPISENDMAIL)GetProcAddress(h_MAPI_DLL, "MAPISendMail");
|
||||
|
||||
//Builds Recipients list
|
||||
MapiRecipDesc RecipientArray[4];
|
||||
|
||||
char c_cI = 0;
|
||||
for (;c_cI < 4 ; c_cI ++)
|
||||
{
|
||||
RecipientArray[c_cI].ulReserved = 0L;
|
||||
RecipientArray[c_cI].ulEIDSize = 0L;
|
||||
RecipientArray[c_cI].lpEntryID = NULL;
|
||||
RecipientArray[c_cI].lpszAddress = NULL;
|
||||
}
|
||||
|
||||
c_cI = 0;
|
||||
//Gets Team
|
||||
ErrorOperator_Team *pclTeam = g_clListOfTeams.m_pub_fn_pclGetTeamFromModuleName(g_csModuleName);
|
||||
if ( pclTeam != NULL )
|
||||
{
|
||||
if ( m_bSendToMainProgrammer && (!pclTeam->m_csMainProgrammerName.IsEmpty()) )
|
||||
{
|
||||
//First recipient = MAIN PROGRAMMER
|
||||
RecipientArray[c_cI].ulRecipClass = MAPI_TO;
|
||||
RecipientArray[c_cI].lpszName = (char *)LPCTSTR(pclTeam->m_csMainProgrammerName);
|
||||
c_cI ++;
|
||||
}
|
||||
if ( m_bSendToSecondProgrammer && (!pclTeam->m_csSecondProgrammerName.IsEmpty()) )
|
||||
{
|
||||
//Second recipient = SECOND PROGRAMMER
|
||||
RecipientArray[c_cI].ulRecipClass = MAPI_TO;
|
||||
RecipientArray[c_cI].lpszName = (char *)LPCTSTR(pclTeam->m_csSecondProgrammerName);
|
||||
c_cI ++;
|
||||
}
|
||||
if ( m_bSendToResponsible && (!pclTeam->m_csResponsibleName.IsEmpty()) )
|
||||
{
|
||||
//Third recipient = SECOND PROGRAMMER
|
||||
RecipientArray[c_cI].ulRecipClass = MAPI_CC;
|
||||
RecipientArray[c_cI].lpszName = (char *)LPCTSTR(pclTeam->m_csResponsibleName);
|
||||
c_cI ++;
|
||||
}
|
||||
|
||||
//Fourth recipient = it's alaways me !!
|
||||
RecipientArray[c_cI].ulRecipClass = MAPI_BCC;
|
||||
RecipientArray[c_cI].lpszName = "Yves Babitch";
|
||||
c_cI ++;
|
||||
}
|
||||
|
||||
//Builds attachment
|
||||
//Saves file
|
||||
m_pri_fn_vSaveFile();
|
||||
MapiFileDesc attachment =
|
||||
{ 0, // ulReserved, must be 0
|
||||
0, // no flags; this is a data file
|
||||
(ULONG)-1, // position not specified
|
||||
(char *)LPCTSTR(m_csFileName), // pathname
|
||||
(char *)LPCTSTR(m_csFileName), // original filename
|
||||
NULL // MapiFileTagExt unused
|
||||
};
|
||||
|
||||
CString csSubject = "ErO Automatic Mail sender >>> The Module '" + g_csModuleName + "' has invoked ErO while '" + g_csCurrentAction + "'!";
|
||||
CString csText = "\nHere is the report on the Error raised in ErO.\n";
|
||||
if ( !m_csAddedComments.IsEmpty() )
|
||||
{
|
||||
csText += "The user wanted to add :\n";
|
||||
csText += m_csAddedComments;
|
||||
}
|
||||
|
||||
MapiMessage message =
|
||||
{ 0, // reserved, must be 0
|
||||
(char *)LPCTSTR(csSubject), //subject
|
||||
(char *)LPCTSTR(csText), //note text
|
||||
NULL, // NULL = interpersonal message
|
||||
NULL, // no date; MAPISendMail ignores it
|
||||
NULL, // no conversation ID
|
||||
0L, // no flags, MAPISendMail ignores it
|
||||
NULL, // no originator, this is ignored too
|
||||
c_cI, // Number of recipients
|
||||
RecipientArray, // NULL recipient array
|
||||
1, // one attachment
|
||||
&attachment // the attachment structure
|
||||
};
|
||||
|
||||
//Sends mail
|
||||
ULONG ulErrorCode;
|
||||
ulErrorCode = p_fn_MAPISendMail(0L, // use implicit session.
|
||||
0L, // ulUIParam; 0 is always valid
|
||||
&message, // the message being sent
|
||||
0L, // allow the user to edit the message
|
||||
0L); // reserved; must be 0
|
||||
|
||||
if ( ulErrorCode != SUCCESS_SUCCESS )
|
||||
{
|
||||
CString csMessage = "Unknown reason";
|
||||
switch ( ulErrorCode )
|
||||
{
|
||||
case MAPI_E_FAILURE:
|
||||
csMessage = "Messaging system internal failure";
|
||||
break;
|
||||
case MAPI_E_ATTACHMENT_NOT_FOUND:
|
||||
csMessage = "Attachment not found";
|
||||
break;
|
||||
case MAPI_E_ATTACHMENT_OPEN_FAILURE:
|
||||
csMessage = "Attachment could not be open";
|
||||
break;
|
||||
case MAPI_E_ATTACHMENT_WRITE_FAILURE:
|
||||
csMessage = "Attachment could not be written";
|
||||
break;
|
||||
};
|
||||
|
||||
csMessage = "Ero was unable to send the message : " + csMessage;
|
||||
MessageBox(csMessage, "ErO Module Error !!", MB_ICONEXCLAMATION);
|
||||
}
|
||||
|
||||
if ( m_bDeleteReport )
|
||||
{
|
||||
CFile cfFile;
|
||||
cfFile.Remove(m_csFileName);
|
||||
}
|
||||
}
|
||||
|
||||
AfxGetApp()->DoWaitCursor(-1);
|
||||
}
|
159
Rayman_X/cpa/tempgrp/ERO/Src/ErOTeam.cpp
Normal file
@@ -0,0 +1,159 @@
|
||||
// ErOTeam.cpp : implementation file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "ErOTeam.hpp"
|
||||
|
||||
#include "ErO_Op.hpp"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
const CString g_c_csUnknownPerson = "< Unknown >";
|
||||
|
||||
//Programmers Info
|
||||
extern ErrorOperator_TeamList g_clListOfTeams;
|
||||
|
||||
//############################################################################
|
||||
//############################################################################
|
||||
//############################################################################
|
||||
|
||||
//***************************************************************************
|
||||
ErrorOperator_Team::ErrorOperator_Team( //Module
|
||||
CString _csModuleName,
|
||||
CString _csModuleVersion,
|
||||
|
||||
//Main Programmer
|
||||
CString _csMainProgrammerName,
|
||||
CString _csMainProgrammerPhoneNumber,
|
||||
CString _csMainProgrammerEMailAddress,
|
||||
|
||||
//Responsible
|
||||
CString _csResponsibleName,
|
||||
CString _csResponsiblePhoneNumber,
|
||||
CString _csResponsibleEMailAddress,
|
||||
|
||||
//Second Programmer
|
||||
CString _csSecondProgrammerName,
|
||||
CString _csSecondProgrammerPhoneNumber,
|
||||
CString _csSecondProgrammerEMailAddress
|
||||
)
|
||||
{
|
||||
//Module
|
||||
m_csModuleName = _csModuleName;
|
||||
m_csModuleVersion = _csModuleVersion;
|
||||
|
||||
//Main Programmer
|
||||
m_csMainProgrammerName = _csMainProgrammerName;
|
||||
m_csMainProgrammerPhoneNumber = _csMainProgrammerPhoneNumber;
|
||||
m_csMainProgrammerEMailAddress = _csMainProgrammerEMailAddress;
|
||||
|
||||
//Responsible
|
||||
m_csResponsibleName = _csResponsibleName;
|
||||
m_csResponsiblePhoneNumber = _csResponsiblePhoneNumber;
|
||||
m_csResponsibleEMailAddress = _csResponsibleEMailAddress;
|
||||
|
||||
//Second Programmer
|
||||
m_csSecondProgrammerName = _csSecondProgrammerName;
|
||||
m_csSecondProgrammerPhoneNumber = _csSecondProgrammerPhoneNumber;
|
||||
m_csSecondProgrammerEMailAddress = _csSecondProgrammerEMailAddress;
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
ErrorOperator_Team::~ErrorOperator_Team()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//############################################################################
|
||||
//############################################################################
|
||||
//############################################################################
|
||||
|
||||
//***************************************************************************
|
||||
ErrorOperator_TeamList::ErrorOperator_TeamList()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
ErrorOperator_TeamList::~ErrorOperator_TeamList()
|
||||
{
|
||||
m_pri_fn_vEmptyList();
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
ErrorOperator_Team *ErrorOperator_TeamList::m_pub_fn_pclAddTeam(//Module
|
||||
CString _csModuleName,
|
||||
CString _csModuleVersion,
|
||||
|
||||
//Main Programmer
|
||||
CString _csMainProgrammerName,
|
||||
CString _csMainProgrammerPhoneNumber,
|
||||
CString _csMainProgrammerEMailAddress,
|
||||
|
||||
//Responsible
|
||||
CString _csResponsibleName,
|
||||
CString _csResponsiblePhoneNumber,
|
||||
CString _csResponsibleEMailAddress,
|
||||
|
||||
//Second Programmer
|
||||
CString _csSecondProgrammerName,
|
||||
CString _csSecondProgrammerPhoneNumber,
|
||||
CString _csSecondProgrammerEMailAddress)
|
||||
{
|
||||
ErrorOperator_Team *pclNewTeam = new ErrorOperator_Team(//Module
|
||||
_csModuleName,
|
||||
_csModuleVersion,
|
||||
|
||||
//Main Programmer
|
||||
_csMainProgrammerName,
|
||||
_csMainProgrammerPhoneNumber,
|
||||
_csMainProgrammerEMailAddress,
|
||||
|
||||
//Responsible
|
||||
_csResponsibleName,
|
||||
_csResponsiblePhoneNumber,
|
||||
_csResponsibleEMailAddress,
|
||||
|
||||
//Second Programmer
|
||||
_csSecondProgrammerName,
|
||||
_csSecondProgrammerPhoneNumber,
|
||||
_csSecondProgrammerEMailAddress);
|
||||
AddTail(pclNewTeam);
|
||||
|
||||
return pclNewTeam;
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErrorOperator_TeamList::m_pri_fn_vEmptyList()
|
||||
{
|
||||
POSITION pos = GetHeadPosition();
|
||||
while ( pos != NULL )
|
||||
delete ( GetNext(pos) );
|
||||
|
||||
RemoveAll();
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
ErrorOperator_Team *ErrorOperator_TeamList::m_pub_fn_pclGetTeamFromModuleName(CString _csModuleName)
|
||||
{
|
||||
BOOL bFound = FALSE;
|
||||
ErrorOperator_Team *pclCurrentTeam;
|
||||
|
||||
POSITION pos = GetHeadPosition();
|
||||
while ( (pos != NULL) && (!bFound) )
|
||||
{
|
||||
pclCurrentTeam = GetNext(pos);
|
||||
|
||||
bFound = ( pclCurrentTeam->m_csModuleName.CompareNoCase(_csModuleName) == 0 );
|
||||
}
|
||||
|
||||
if ( bFound )
|
||||
return pclCurrentTeam;
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
293
Rayman_X/cpa/tempgrp/ERO/Src/ErO_DgEr.cpp
Normal file
@@ -0,0 +1,293 @@
|
||||
// EDACDgEr.cpp : implementation file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "ErO_Op.hpp"
|
||||
#include "ErOTeam.hpp"
|
||||
#include "ErOReprt.hpp"
|
||||
#include "ErO_Priv.hpp"
|
||||
|
||||
#undef CPA_WANTS_IMPORT
|
||||
#undef CPA_EXPORT
|
||||
#define CPA_WANTS_EXPORT
|
||||
#include "ErO_DgEr.hpp"
|
||||
#undef CPA_WANTS_EXPORT
|
||||
#define CPA_WANTS_IMPORT
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
#define ERO_C_TimerID 1069
|
||||
#define ERO_C_TimerDelay 200
|
||||
|
||||
#include "ErO_Res.h"
|
||||
|
||||
extern HMODULE g_hModule;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ERROR_Dialog_ErrorInformations dialog
|
||||
|
||||
BEGIN_MESSAGE_MAP(ERROR_Dialog_ErrorInformations, CDialog)
|
||||
//{{AFX_MSG_MAP(ERROR_Dialog_ErrorInformations)
|
||||
ON_BN_CLICKED(IDC_BUTTON_OPEN_SCRIPT, OnButtonOpenScript)
|
||||
ON_BN_CLICKED(IDC_BUTTON_OPEN_SOURCE, OnButtonOpenSource)
|
||||
ON_WM_TIMER()
|
||||
ON_WM_CLOSE()
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
//**********************************************************************************************
|
||||
ERROR_Dialog_ErrorInformations::ERROR_Dialog_ErrorInformations()
|
||||
: CDialog(IDD_DIALOG_ERROR, NULL)
|
||||
{
|
||||
//{{AFX_DATA_INIT(ERROR_Dialog_ErrorInformations)
|
||||
// NOTE: the ClassWizard will add member initialization here
|
||||
//}}AFX_DATA_INIT
|
||||
|
||||
m_hOldInstance = AfxGetResourceHandle();
|
||||
AfxSetResourceHandle( g_hModule );
|
||||
|
||||
m_csCurrentAction = g_csCurrentAction.IsEmpty() ? ERO_C_szUnknown : g_csCurrentAction;
|
||||
|
||||
CStringList clStringList;
|
||||
ErO_fn_vBuildStringListForInfos(g_csAddedInfo, &clStringList);
|
||||
if ( clStringList.GetCount() > 0 )
|
||||
m_csErrorMoreInfo = clStringList.GetHead();
|
||||
else
|
||||
m_csErrorMoreInfo = ERO_C_szUnknown;
|
||||
|
||||
m_csCurrentFileName = g_csCurrentFileName.IsEmpty() ? ERO_C_szUnknown : g_csCurrentFileName;
|
||||
m_csFunction = g_csCurrentFunction.IsEmpty() ? ERO_C_szUnknown : g_csCurrentFunction;
|
||||
|
||||
m_csCurrentScriptFileName = g_csCurrentScriptFileName.IsEmpty() ? ERO_C_szUnknown : g_csCurrentScriptFileName;
|
||||
|
||||
m_csErrorGravity = g_cslGravityMessages.GetAt(g_cslGravityMessages.FindIndex(g_eErrorGravity));
|
||||
|
||||
//Gets Bitmap
|
||||
UINT nIDResource = 0;
|
||||
switch ( g_eErrorGravity )
|
||||
{
|
||||
case E_ERROR_GRAVITY_FATAL:
|
||||
nIDResource = IDB_BITMAP_ERROR_FATAL;
|
||||
break;
|
||||
case E_ERROR_GRAVITY_INSTABLE:
|
||||
nIDResource = IDB_BITMAP_ERROR_INSTABLE;
|
||||
break;
|
||||
case E_ERROR_GRAVITY_WARNING:
|
||||
nIDResource = IDB_BITMAP_ERROR_WARNING;
|
||||
break;
|
||||
case E_ERROR_GRAVITY_UNKNOWN:
|
||||
nIDResource = IDB_BITMAP_ERROR_UNKNOWN;
|
||||
break;
|
||||
}
|
||||
|
||||
m_cbBitmap.LoadBitmap(nIDResource);
|
||||
|
||||
//Sets type of Statics
|
||||
m_clMIS_Module.m_pub_fn_vSetType(ERO_STATIC_TYPE__MODULE);
|
||||
m_clMIS_Action.m_pub_fn_vSetType(ERO_STATIC_TYPE__ACTION);
|
||||
m_clMIS_Debug.m_pub_fn_vSetType(ERO_STATIC_TYPE__DEBUG);
|
||||
m_clMIS_Script.m_pub_fn_vSetType(ERO_STATIC_TYPE__SCRIPT);
|
||||
m_clMIS_Additionnal.m_pub_fn_vSetType(ERO_STATIC_TYPE__ADDITIONNAL);
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
ERROR_Dialog_ErrorInformations::~ERROR_Dialog_ErrorInformations()
|
||||
{
|
||||
AfxSetResourceHandle(m_hOldInstance);
|
||||
}
|
||||
|
||||
//**********************************************************************************************
|
||||
void ERROR_Dialog_ErrorInformations::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(ERROR_Dialog_ErrorInformations)
|
||||
DDX_Control(pDX, IDC_STATIC_MORE_ON_SCRIPT, m_clMIS_Script);
|
||||
DDX_Control(pDX, IDC_STATIC_MORE_ON_MODULE, m_clMIS_Module);
|
||||
DDX_Control(pDX, IDC_STATIC_MORE_ON_DEBUG, m_clMIS_Debug);
|
||||
DDX_Control(pDX, IDC_STATIC_MORE_ON_ADDITIONNAL, m_clMIS_Additionnal);
|
||||
DDX_Control(pDX, IDC_STATIC_MORE_ON_ACTION, m_clMIS_Action);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
//**********************************************************************************************
|
||||
BOOL ERROR_Dialog_ErrorInformations::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
//Loads bitmaps
|
||||
m_a_cbArrayOfBitmaps[7].LoadBitmap(IDB_PLUS_1);
|
||||
m_a_cbArrayOfBitmaps[6].LoadBitmap(IDB_PLUS_2);
|
||||
m_a_cbArrayOfBitmaps[5].LoadBitmap(IDB_PLUS_3);
|
||||
m_a_cbArrayOfBitmaps[4].LoadBitmap(IDB_PLUS_4);
|
||||
m_a_cbArrayOfBitmaps[3].LoadBitmap(IDB_PLUS_5);
|
||||
m_a_cbArrayOfBitmaps[2].LoadBitmap(IDB_PLUS_6);
|
||||
m_a_cbArrayOfBitmaps[1].LoadBitmap(IDB_PLUS_7);
|
||||
m_a_cbArrayOfBitmaps[0].LoadBitmap(IDB_PLUS_8);
|
||||
|
||||
SetTimer(ERO_C_TimerID, ERO_C_TimerDelay, NULL);
|
||||
|
||||
//Sets texts
|
||||
m_fn_vSetModuleText();
|
||||
m_fn_vSetCurrentActionText();
|
||||
m_fn_vSetCurrentFileNameText();
|
||||
m_fn_vSetFunctionText();
|
||||
m_fn_vSetCurrentScriptFileNameText();
|
||||
m_fn_vSetErrorGravityText();
|
||||
m_fn_vSetErrorMoreInfoText();
|
||||
|
||||
//Sets bitmap
|
||||
CStatic *pclBitmapStatic = (CStatic *)GetDlgItem(IDC_STATIC_IMAGE);
|
||||
pclBitmapStatic->SetBitmap(HBITMAP(m_cbBitmap));
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
|
||||
//**********************************************************************************************
|
||||
void ERROR_Dialog_ErrorInformations::OnClose()
|
||||
{
|
||||
KillTimer(ERO_C_TimerID);
|
||||
|
||||
CDialog::OnClose();
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ERROR_Dialog_ErrorInformations message handlers
|
||||
|
||||
//**********************************************************************************************
|
||||
void ERROR_Dialog_ErrorInformations::m_fn_vSetModuleText(CString csTextToDisplay)
|
||||
{
|
||||
CString csTrueModuleName = (g_csModuleName.IsEmpty()) ? ERO_C_szUnknown : g_csModuleName;
|
||||
|
||||
m_pri_fn_vSetTextToFitWindow(GetDlgItem(IDC_STATIC_MODULE_NAME), csTrueModuleName);
|
||||
}
|
||||
|
||||
//**********************************************************************************************
|
||||
void ERROR_Dialog_ErrorInformations::m_fn_vSetCurrentActionText(CString csTextToDisplay)
|
||||
{
|
||||
m_pri_fn_vSetTextToFitWindow(GetDlgItem(IDC_TEXT_CURRENT_ACTION),
|
||||
csTextToDisplay.IsEmpty() ? m_csCurrentAction : csTextToDisplay);
|
||||
}
|
||||
|
||||
//**********************************************************************************************
|
||||
void ERROR_Dialog_ErrorInformations::m_fn_vSetCurrentFileNameText(CString csTextToDisplay)
|
||||
{
|
||||
m_pri_fn_vSetTextToFitWindow(GetDlgItem(IDC_TEXT_FILE_NAME),
|
||||
csTextToDisplay.IsEmpty() ? m_pri_fn_csExtractFileNameFromCompletePath(m_csCurrentFileName) : csTextToDisplay);
|
||||
}
|
||||
|
||||
//**********************************************************************************************
|
||||
void ERROR_Dialog_ErrorInformations::m_fn_vSetFunctionText(CString csTextToDisplay)
|
||||
{
|
||||
m_pri_fn_vSetTextToFitWindow(GetDlgItem(IDC_TEXT_FUNCTION),
|
||||
csTextToDisplay.IsEmpty() ? m_csFunction : csTextToDisplay);
|
||||
}
|
||||
|
||||
//**********************************************************************************************
|
||||
void ERROR_Dialog_ErrorInformations::m_fn_vSetCurrentScriptFileNameText(CString csTextToDisplay)
|
||||
{
|
||||
m_pri_fn_vSetTextToFitWindow(GetDlgItem(IDC_TEXT_SCRIPT_FILE_NAME),
|
||||
csTextToDisplay.IsEmpty() ? m_pri_fn_csExtractFileNameFromCompletePath(m_csCurrentScriptFileName) : csTextToDisplay);
|
||||
|
||||
if ( m_csCurrentScriptFileName.Compare(ERO_C_szUnknown) == 0 )
|
||||
GetDlgItem(IDC_BUTTON_OPEN_SCRIPT)->EnableWindow(FALSE);
|
||||
}
|
||||
|
||||
//**********************************************************************************************
|
||||
void ERROR_Dialog_ErrorInformations::m_fn_vSetErrorGravityText(CString csTextToDisplay)
|
||||
{
|
||||
m_pri_fn_vSetTextToFitWindow(GetDlgItem(IDC_TEXT_ERROR_GRAVITY),
|
||||
csTextToDisplay.IsEmpty() ? m_csErrorGravity : csTextToDisplay);
|
||||
}
|
||||
|
||||
//**********************************************************************************************
|
||||
void ERROR_Dialog_ErrorInformations::m_fn_vSetErrorMoreInfoText(CString csTextToDisplay)
|
||||
{
|
||||
m_pri_fn_vSetTextToFitWindow(GetDlgItem(IDC_TEXT_ERROR_MORE_INFO),
|
||||
csTextToDisplay.IsEmpty() ? m_csErrorMoreInfo : csTextToDisplay);
|
||||
}
|
||||
|
||||
//**********************************************************************************************
|
||||
void ERROR_Dialog_ErrorInformations::OnButtonOpenScript()
|
||||
{
|
||||
CString csCommandLine = "Notepad.exe " + m_csCurrentScriptFileName;
|
||||
WinExec(csCommandLine, SW_SHOWNORMAL);
|
||||
}
|
||||
|
||||
//**********************************************************************************************
|
||||
void ERROR_Dialog_ErrorInformations::OnButtonOpenSource()
|
||||
{
|
||||
CString csCommandLine = "Notepad.exe " + m_csCurrentFileName;
|
||||
WinExec(csCommandLine, SW_SHOWNORMAL);
|
||||
}
|
||||
|
||||
//**********************************************************************************************
|
||||
CString ERROR_Dialog_ErrorInformations::m_pri_fn_csExtractFileNameFromCompletePath(CString _csCompletePath)
|
||||
{
|
||||
CString csStringToReturn;
|
||||
|
||||
short wIndex = _csCompletePath.ReverseFind('\\');
|
||||
if ( wIndex != -1 )
|
||||
csStringToReturn = _csCompletePath.Right(_csCompletePath.GetLength() - wIndex - 1);
|
||||
else
|
||||
csStringToReturn = _csCompletePath;
|
||||
|
||||
return csStringToReturn;
|
||||
}
|
||||
|
||||
//**********************************************************************************************
|
||||
void ERROR_Dialog_ErrorInformations::m_pri_fn_vSetTextToFitWindow(CWnd *_pclWnd, CString _csTextToDisplay)
|
||||
{
|
||||
//Gets window size
|
||||
CRect crWindowRect;
|
||||
_pclWnd->GetWindowRect(crWindowRect);
|
||||
|
||||
CString csDisplayedString = _csTextToDisplay;
|
||||
CString csTruelyDisplayedString;
|
||||
CClientDC dc(_pclWnd);
|
||||
dc.SelectObject(_pclWnd->GetFont());
|
||||
|
||||
if ( dc.GetTextExtent(csDisplayedString).cx > crWindowRect.Width() )
|
||||
{
|
||||
csTruelyDisplayedString = csDisplayedString + "...";
|
||||
|
||||
while ( dc.GetTextExtent(csTruelyDisplayedString).cx > crWindowRect.Width() )
|
||||
{
|
||||
csDisplayedString = csDisplayedString.Left(csDisplayedString.GetLength() - 1);
|
||||
csTruelyDisplayedString = csDisplayedString + "...";
|
||||
}
|
||||
|
||||
//Deletes one more character
|
||||
csDisplayedString = csDisplayedString.Left(csDisplayedString.GetLength() - 1);
|
||||
csTruelyDisplayedString = csDisplayedString + "...";
|
||||
|
||||
_pclWnd->SetWindowText(csTruelyDisplayedString);
|
||||
}
|
||||
else
|
||||
_pclWnd->SetWindowText(_csTextToDisplay);
|
||||
}
|
||||
|
||||
//**********************************************************************************************
|
||||
void ERROR_Dialog_ErrorInformations::OnTimer(UINT nIDEvent)
|
||||
{
|
||||
static char s_cCurrentBitmapIndex = 0;
|
||||
|
||||
if (nIDEvent == ERO_C_TimerID)
|
||||
{
|
||||
m_clMIS_Module.SetBitmap(HBITMAP(m_a_cbArrayOfBitmaps[s_cCurrentBitmapIndex]));
|
||||
m_clMIS_Action.SetBitmap(HBITMAP(m_a_cbArrayOfBitmaps[(s_cCurrentBitmapIndex + 1) % ERO_C_NUMBER_OF_BITMAPS]));
|
||||
m_clMIS_Debug.SetBitmap(HBITMAP(m_a_cbArrayOfBitmaps[(s_cCurrentBitmapIndex + 2) % ERO_C_NUMBER_OF_BITMAPS]));
|
||||
m_clMIS_Script.SetBitmap(HBITMAP(m_a_cbArrayOfBitmaps[(s_cCurrentBitmapIndex + 3) % ERO_C_NUMBER_OF_BITMAPS]));
|
||||
m_clMIS_Additionnal.SetBitmap(HBITMAP(m_a_cbArrayOfBitmaps[(s_cCurrentBitmapIndex + 4) % ERO_C_NUMBER_OF_BITMAPS]));
|
||||
|
||||
s_cCurrentBitmapIndex = (s_cCurrentBitmapIndex + 1) % ERO_C_NUMBER_OF_BITMAPS;
|
||||
}
|
||||
|
||||
CDialog::OnTimer(nIDEvent);
|
||||
}
|
||||
|
529
Rayman_X/cpa/tempgrp/ERO/Src/ErO_DgIf.cpp
Normal file
@@ -0,0 +1,529 @@
|
||||
// ErO_DgIf.cpp : implementation file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "ErO_DgIf.hpp"
|
||||
|
||||
#include "ErO_Stat.hpp"
|
||||
#include "ErOTeam.hpp"
|
||||
#include "ErO_Op.hpp"
|
||||
#include "ErO_Priv.hpp"
|
||||
#include "ErOReprt.hpp"
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
//Array of ID
|
||||
UINT g_a_uiID[ERO_STATIC_TYPE__NUMBER_OF_TYPES - 1]=
|
||||
{
|
||||
IDD_DIALOG_MORE_INFO1,
|
||||
IDD_DIALOG_MORE_INFO2,
|
||||
IDD_DIALOG_MORE_INFO3,
|
||||
IDD_DIALOG_MORE_INFO4,
|
||||
IDD_DIALOG_MORE_INFO5,
|
||||
};
|
||||
/////////////////////////////////////////////////////////
|
||||
|
||||
#define ERO_C_SPACING_WITH_BORDER 14
|
||||
#define ERO_C_NUMBER_OF_BACKGROUND_BITMAPS 2
|
||||
|
||||
extern HMODULE g_hModule;
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ErO_MoreInfoDialog dialog
|
||||
|
||||
BEGIN_MESSAGE_MAP(ErO_MoreInfoDialog, CDialog)
|
||||
//{{AFX_MSG_MAP(ErO_MoreInfoDialog)
|
||||
ON_WM_MOUSEMOVE()
|
||||
// ON_BN_CLICKED(IDC_BUTTON_SEND_MESSAGE, OnButtonSendMessage)
|
||||
ON_BN_CLICKED(IDC_BUTTON_MAKE_REPORT, OnButtonMakeReport)
|
||||
ON_WM_LBUTTONUP()
|
||||
ON_WM_LBUTTONDOWN()
|
||||
#ifdef ERO_BITMAP_AS_BACKGROUND
|
||||
ON_WM_PAINT()
|
||||
#endif //ERO_BITMAP_AS_BACKGROUND
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
//***************************************************************************
|
||||
ErO_MoreInfoDialog::ErO_MoreInfoDialog(CWnd* pParent,
|
||||
CPoint cpPoint,
|
||||
enum ErO_eStaticType _tdeType)
|
||||
: CDialog(g_a_uiID[_tdeType - 1], pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(ErO_MoreInfoDialog)
|
||||
// NOTE: the ClassWizard will add member initialization here
|
||||
//}}AFX_DATA_INIT
|
||||
|
||||
m_pri_cpPoint = cpPoint;
|
||||
m_pri_eType = _tdeType;
|
||||
|
||||
m_pri_bHasCapturedMouse= FALSE;
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
ErO_MoreInfoDialog::~ErO_MoreInfoDialog()
|
||||
{
|
||||
POSITION pos = m_pri_clListOfID.GetHeadPosition();
|
||||
while ( pos != NULL )
|
||||
delete m_pri_clListOfID.GetNext(pos);
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErO_MoreInfoDialog::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(ErO_MoreInfoDialog)
|
||||
// NOTE: the ClassWizard will add DDX and DDV calls here
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ErO_MoreInfoDialog message handlers
|
||||
|
||||
//***************************************************************************
|
||||
BOOL ErO_MoreInfoDialog::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
long lMaxLength = m_pri_fn_l_ComputeLongestString();
|
||||
|
||||
m_pri_BuilListOfID();
|
||||
m_pri_MoveControls(lMaxLength);
|
||||
|
||||
CRect crWindowRect;
|
||||
GetWindowRect(crWindowRect);
|
||||
//Moves Rect to right position
|
||||
crWindowRect.OffsetRect(m_pri_cpPoint.x - crWindowRect.left,
|
||||
m_pri_cpPoint.y - crWindowRect.top);
|
||||
|
||||
//Adjusts Rect's size
|
||||
crWindowRect.right = crWindowRect.left + lMaxLength + 2*ERO_C_SPACING_WITH_BORDER;
|
||||
|
||||
if ( m_pri_eType == ERO_STATIC_TYPE__MODULE )
|
||||
{
|
||||
//Gets Team
|
||||
ErrorOperator_Team *pclTeam = g_clListOfTeams.m_pub_fn_pclGetTeamFromModuleName(g_csModuleName);
|
||||
if ( pclTeam != NULL )
|
||||
{
|
||||
CString csProgName = pclTeam->m_csMainProgrammerName;
|
||||
csProgName.MakeLower();
|
||||
HICON hIcon;
|
||||
if ( csProgName.Find("babitch") != -1 )
|
||||
{
|
||||
hIcon = ::LoadIcon(g_hModule, MAKEINTRESOURCE(IDI_ICON_PROG_YB));
|
||||
((CStatic *)GetDlgItem(IDC_IMAGE))->SetIcon(hIcon);
|
||||
}
|
||||
else if ( csProgName.Find("billault") != -1 )
|
||||
{
|
||||
hIcon = ::LoadIcon(g_hModule, MAKEINTRESOURCE(IDI_ICON_PROG_XB));
|
||||
((CStatic *)GetDlgItem(IDC_IMAGE))->SetIcon(hIcon);
|
||||
}
|
||||
else if ( csProgName.Find("reizer") != -1 )
|
||||
{
|
||||
hIcon = ::LoadIcon(g_hModule, MAKEINTRESOURCE(IDI_ICON_PROG_DR));
|
||||
((CStatic *)GetDlgItem(IDC_IMAGE))->SetIcon(hIcon);
|
||||
}
|
||||
else
|
||||
GetDlgItem(IDC_IMAGE)->ShowWindow(SW_HIDE);
|
||||
}
|
||||
else
|
||||
{
|
||||
GetDlgItem(IDC_IMAGE)->ShowWindow(SW_HIDE);
|
||||
//Cannot send a message
|
||||
// GetDlgItem(IDC_BUTTON_SEND_MESSAGE)->ShowWindow(SW_HIDE);
|
||||
}
|
||||
}
|
||||
else if ( m_pri_eType == ERO_STATIC_TYPE__ACTION )
|
||||
{
|
||||
//Resizes window to show all lines of ListBox
|
||||
/* CListBox *pclListBox = (CListBox *)GetDlgItem(IDC_LIST_ADD_INFO);
|
||||
short wListBoxHeight = pclListBox->GetCount() * pclListBox->GetItemHeight(0) + 2;
|
||||
|
||||
CRect crLBRect;
|
||||
pclListBox->GetWindowRect(crLBRect);
|
||||
crLBRect.bottom = crLBRect.top + wListBoxHeight;
|
||||
|
||||
crWindowRect.bottom = crLBRect.bottom + ERO_C_SPACING_WITH_BORDER;
|
||||
|
||||
ScreenToClient(&crLBRect);
|
||||
|
||||
pclListBox->MoveWindow(crLBRect);*/
|
||||
}
|
||||
|
||||
//Moves Window
|
||||
MoveWindow(crWindowRect);
|
||||
|
||||
SetCapture();
|
||||
|
||||
#ifdef ERO_BITMAP_AS_BACKGROUND
|
||||
//Selects a bitmap
|
||||
/* srand((unsigned)time( NULL ));
|
||||
int iRandomNumber = rand();
|
||||
iRandomNumber = (iRandomNumber * ERO_C_NUMBER_OF_BACKGROUND_BITMAPS) / RAND_MAX + 1;
|
||||
CString csResourceName;
|
||||
csResourceName.Format("IDB_BITMAP_BACKGROUND_%i", iRandomNumber);
|
||||
m_pri_cBackgroundBitmap.LoadBitmap(csResourceName);*/
|
||||
m_pri_cBackgroundBitmap.LoadBitmap(IDB_BITMAP_BACKGROUND_1);
|
||||
#endif //ERO_BITMAP_AS_BACKGROUND
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErO_MoreInfoDialog::OnMouseMove(UINT nFlags, CPoint point)
|
||||
{
|
||||
if ( !m_pri_bHasCapturedMouse )
|
||||
{
|
||||
SetCapture();
|
||||
|
||||
GetWindowRect(m_pri_crWindowRect);
|
||||
m_pri_bHasCapturedMouse = TRUE;
|
||||
}
|
||||
|
||||
if ( m_pri_bHasCapturedMouse )
|
||||
{
|
||||
CPoint cpTempPoint(point);
|
||||
ClientToScreen(&cpTempPoint);
|
||||
if ( !m_pri_crWindowRect.PtInRect(cpTempPoint) )
|
||||
{
|
||||
ReleaseCapture();
|
||||
m_pri_bHasCapturedMouse = FALSE;
|
||||
EndDialog(IDOK);
|
||||
}
|
||||
}
|
||||
|
||||
//For buttons response
|
||||
if ( m_pri_eType == ERO_STATIC_TYPE__MODULE )
|
||||
{
|
||||
WPARAM wParam = nFlags;
|
||||
LPARAM lParam = point.x << (sizeof(LPARAM) / 2) + point.y;
|
||||
|
||||
// GetDlgItem(IDC_BUTTON_SEND_MESSAGE)->SendMessage(WM_MOUSEMOVE, wParam, lParam);
|
||||
}
|
||||
|
||||
CDialog::OnMouseMove(nFlags, point);
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErO_MoreInfoDialog::OnLButtonUp(UINT nFlags, CPoint point)
|
||||
{
|
||||
//For buttons response
|
||||
if ( m_pri_eType == ERO_STATIC_TYPE__MODULE )
|
||||
{
|
||||
WPARAM wParam = nFlags;
|
||||
LPARAM lParam = point.x << (sizeof(LPARAM) / 2) + point.y;
|
||||
|
||||
// GetDlgItem(IDC_BUTTON_SEND_MESSAGE)->SendMessage(WM_LBUTTONUP, wParam, lParam);
|
||||
}
|
||||
|
||||
CDialog::OnLButtonUp(nFlags, point);
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErO_MoreInfoDialog::OnLButtonDown(UINT nFlags, CPoint point)
|
||||
{
|
||||
//For buttons response
|
||||
if ( m_pri_eType == ERO_STATIC_TYPE__MODULE )
|
||||
{
|
||||
WPARAM wParam = nFlags;
|
||||
LPARAM lParam = point.x << (sizeof(LPARAM) / 2) + point.y;
|
||||
|
||||
// GetDlgItem(IDC_BUTTON_SEND_MESSAGE)->SendMessage(WM_LBUTTONDOWN, wParam, lParam);
|
||||
}
|
||||
|
||||
CDialog::OnLButtonDown(nFlags, point);
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/*void ErO_MoreInfoDialog::OnButtonSendMessage()
|
||||
{
|
||||
//Gets Team
|
||||
ErrorOperator_Team *pclTeam = g_clListOfTeams.m_pub_fn_pclGetTeamFromModuleName(g_csModuleName);
|
||||
if ( pclTeam != NULL )
|
||||
{
|
||||
CString csProgName = pclTeam->m_csMainProgrammerName;
|
||||
|
||||
//Builds a name with first name first letter and name
|
||||
short wIndex = csProgName.Find(" ");
|
||||
if ( wIndex != -1 )
|
||||
{
|
||||
CString csNetSendName = csProgName.Left(1) + csProgName.Right(csProgName.GetLength() - wIndex - 1);
|
||||
|
||||
CString csNetSendMessage = CString('"') + "Your module '" + g_csModuleName
|
||||
+ "' has crashed while : " + g_csCurrentAction + '"';
|
||||
|
||||
CString csCommanLine = "net send " + csNetSendName + " " + csNetSendMessage;
|
||||
WinExec(csCommanLine, SW_HIDE);
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
//***************************************************************************
|
||||
void ErO_MoreInfoDialog::OnButtonMakeReport()
|
||||
{
|
||||
ErrorOperator_DialogReport ReportDial(this);
|
||||
ReportDial.DoModal();
|
||||
SetCapture();
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
#define ERO_M_ADD_ID(ID) \
|
||||
pclUI = new UINT; \
|
||||
*pclUI = ID; \
|
||||
m_pri_clListOfID.AddTail(pclUI);
|
||||
|
||||
//***************************************************************************
|
||||
void ErO_MoreInfoDialog::m_pri_BuilListOfID()
|
||||
{
|
||||
UINT *pclUI;
|
||||
switch ( m_pri_eType )
|
||||
{
|
||||
case ERO_STATIC_TYPE__MODULE:
|
||||
ERO_M_ADD_ID(IDC_TEXT_TITLE);
|
||||
ERO_M_ADD_ID(IDC_MODULE_NAME);
|
||||
ERO_M_ADD_ID(IDC_MODULE_VERSION);
|
||||
ERO_M_ADD_ID(IDC_MODULE_MAIN_NAME);
|
||||
ERO_M_ADD_ID(IDC_MODULE_MAIN_PHONE);
|
||||
ERO_M_ADD_ID(IDC_MODULE_MAIN_MAIL);
|
||||
ERO_M_ADD_ID(IDC_MODULE_SECOND_NAME);
|
||||
ERO_M_ADD_ID(IDC_MODULE_SECOND_PHONE);
|
||||
ERO_M_ADD_ID(IDC_MODULE_SECOND_MAIL);
|
||||
ERO_M_ADD_ID(IDC_MODULE_RESPONSIBLE_NAME);
|
||||
ERO_M_ADD_ID(IDC_MODULE_RESPONSIBLE_PHONE);
|
||||
ERO_M_ADD_ID(IDC_MODULE_RESPONSIBLE_MAIL);
|
||||
break;
|
||||
|
||||
case ERO_STATIC_TYPE__ACTION:
|
||||
ERO_M_ADD_ID(IDC_TEXT_TITLE);
|
||||
ERO_M_ADD_ID(IDC_CURRENT_ACTION);
|
||||
ERO_M_ADD_ID(IDC_LIST_ADD_INFO);
|
||||
break;
|
||||
|
||||
case ERO_STATIC_TYPE__DEBUG:
|
||||
ERO_M_ADD_ID(IDC_TEXT_TITLE);
|
||||
ERO_M_ADD_ID(IDC_FILE_NAME);
|
||||
ERO_M_ADD_ID(IDC_LINE_NUMBER);
|
||||
ERO_M_ADD_ID(IDC_FILE_DATE);
|
||||
ERO_M_ADD_ID(IDC_FUNCTION);
|
||||
break;
|
||||
|
||||
case ERO_STATIC_TYPE__SCRIPT:
|
||||
ERO_M_ADD_ID(IDC_TEXT_TITLE);
|
||||
ERO_M_ADD_ID(IDC_FILE_NAME);
|
||||
ERO_M_ADD_ID(IDC_LINE_NUMBER);
|
||||
break;
|
||||
|
||||
case ERO_STATIC_TYPE__ADDITIONNAL:
|
||||
ERO_M_ADD_ID(IDC_TEXT_TITLE);
|
||||
ERO_M_ADD_ID(IDC_ERROR_TYPE);
|
||||
ERO_M_ADD_ID(IDC_EXPLANATION);
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErO_MoreInfoDialog::m_pri_MoveControls(long _lWidth)
|
||||
{
|
||||
CWnd *pclWnd;
|
||||
CRect crControlRect;
|
||||
POSITION pos = m_pri_clListOfID.GetHeadPosition();
|
||||
while ( pos != NULL )
|
||||
{
|
||||
pclWnd = GetDlgItem(*m_pri_clListOfID.GetNext(pos));
|
||||
|
||||
if ( pclWnd != NULL )
|
||||
{
|
||||
pclWnd->GetWindowRect(crControlRect);
|
||||
ScreenToClient(crControlRect);
|
||||
crControlRect.right = crControlRect.left + _lWidth;
|
||||
|
||||
pclWnd->MoveWindow(crControlRect);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
long ErO_MoreInfoDialog::m_pri_fn_l_ComputeLongestString()
|
||||
{
|
||||
CClientDC dc(this);
|
||||
dc.SelectObject(GetFont());
|
||||
long lMaxLength = 0;
|
||||
CString csTempString;
|
||||
|
||||
//Gets Team
|
||||
ErrorOperator_Team *pclTeam = g_clListOfTeams.m_pub_fn_pclGetTeamFromModuleName(g_csModuleName);
|
||||
|
||||
switch ( m_pri_eType )
|
||||
{
|
||||
case ERO_STATIC_TYPE__MODULE:
|
||||
csTempString = "Module additionnal informations";
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
|
||||
csTempString = g_csModuleName.IsEmpty() ? ERO_C_szUnknown : g_csModuleName;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_MODULE_NAME)->SetWindowText(csTempString);
|
||||
|
||||
csTempString = (pclTeam == NULL) ? ERO_C_szUnknown : pclTeam->m_csModuleVersion;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_MODULE_VERSION)->SetWindowText(csTempString);
|
||||
|
||||
csTempString = (pclTeam == NULL) ? ERO_C_szUnknown : pclTeam->m_csMainProgrammerName;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_MODULE_MAIN_NAME)->SetWindowText(csTempString);
|
||||
|
||||
csTempString = (pclTeam == NULL) ? ERO_C_szUnknown : pclTeam->m_csMainProgrammerPhoneNumber;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_MODULE_MAIN_PHONE)->SetWindowText(csTempString);
|
||||
|
||||
csTempString = (pclTeam == NULL) ? ERO_C_szUnknown : pclTeam->m_csMainProgrammerEMailAddress;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_MODULE_MAIN_MAIL)->SetWindowText(csTempString);
|
||||
|
||||
csTempString = (pclTeam == NULL) ? ERO_C_szUnknown : pclTeam->m_csResponsibleName;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_MODULE_RESPONSIBLE_NAME)->SetWindowText(csTempString);
|
||||
|
||||
csTempString = (pclTeam == NULL) ? ERO_C_szUnknown : pclTeam->m_csResponsiblePhoneNumber;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_MODULE_RESPONSIBLE_PHONE)->SetWindowText(csTempString);
|
||||
|
||||
csTempString = (pclTeam == NULL) ? ERO_C_szUnknown : pclTeam->m_csResponsibleEMailAddress;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_MODULE_RESPONSIBLE_MAIL)->SetWindowText(csTempString);
|
||||
|
||||
csTempString = (pclTeam == NULL) ? ERO_C_szUnknown : pclTeam->m_csSecondProgrammerName;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_MODULE_SECOND_NAME)->SetWindowText(csTempString);
|
||||
|
||||
csTempString = (pclTeam == NULL) ? ERO_C_szUnknown : pclTeam->m_csSecondProgrammerPhoneNumber;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_MODULE_SECOND_PHONE)->SetWindowText(csTempString);
|
||||
|
||||
csTempString = (pclTeam == NULL) ? ERO_C_szUnknown : pclTeam->m_csSecondProgrammerEMailAddress;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_MODULE_SECOND_MAIL)->SetWindowText(csTempString);
|
||||
|
||||
break;
|
||||
|
||||
case ERO_STATIC_TYPE__ACTION:
|
||||
{
|
||||
csTempString = "Current action additionnal informations";
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
|
||||
csTempString = g_csCurrentAction.IsEmpty() ? ERO_C_szUnknown : g_csCurrentAction;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_CURRENT_ACTION)->SetWindowText(csTempString);
|
||||
|
||||
//Fills list box with strings
|
||||
CStringList clStringList;
|
||||
ErO_fn_vBuildStringListForInfos(g_csAddedInfo, &clStringList);
|
||||
POSITION pos = clStringList.GetHeadPosition();
|
||||
while (pos != NULL )
|
||||
{
|
||||
csTempString = clStringList.GetNext(pos);
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
((CListBox *)GetDlgItem(IDC_LIST_ADD_INFO))->AddString(csTempString);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case ERO_STATIC_TYPE__DEBUG:
|
||||
csTempString = "Debug additionnal informations";
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
|
||||
csTempString = g_csCurrentFileName;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_FILE_NAME)->SetWindowText(csTempString);
|
||||
|
||||
csTempString.Format("%i", g_wCurrentFileLine);
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_LINE_NUMBER)->SetWindowText(csTempString);
|
||||
|
||||
csTempString = g_csLastModif;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_FILE_DATE)->SetWindowText(csTempString);
|
||||
|
||||
csTempString = g_csCurrentFunction.IsEmpty() ? ERO_C_szUnknown : g_csCurrentFunction;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_FUNCTION)->SetWindowText(csTempString);
|
||||
|
||||
break;
|
||||
|
||||
case ERO_STATIC_TYPE__SCRIPT:
|
||||
csTempString = "Script additionnal informations";
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
|
||||
csTempString = g_csCurrentScriptFileName.IsEmpty() ? ERO_C_szUnknown : g_csCurrentScriptFileName;
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_FILE_NAME)->SetWindowText(csTempString);
|
||||
|
||||
if ( !g_csCurrentScriptFileName.IsEmpty() )
|
||||
csTempString.Format("%i", g_wCurrentScriptLine);
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_LINE_NUMBER)->SetWindowText(csTempString);
|
||||
|
||||
break;
|
||||
|
||||
case ERO_STATIC_TYPE__ADDITIONNAL:
|
||||
csTempString = "Global informations";
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
|
||||
csTempString = g_cslGravityMessages.GetAt(g_cslGravityMessages.FindIndex(g_eErrorGravity));
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_ERROR_TYPE)->SetWindowText(csTempString);
|
||||
|
||||
csTempString = g_cslGravityExplanations.GetAt(g_cslGravityExplanations.FindIndex(g_eErrorGravity));
|
||||
lMaxLength = max(dc.GetTextExtent(csTempString).cx, lMaxLength);
|
||||
GetDlgItem(IDC_EXPLANATION)->SetWindowText(csTempString);
|
||||
|
||||
break;
|
||||
};
|
||||
|
||||
return lMaxLength + 10;
|
||||
}
|
||||
|
||||
#ifdef ERO_BITMAP_AS_BACKGROUND
|
||||
//***************************************************************************
|
||||
void ErO_MoreInfoDialog::OnPaint()
|
||||
{
|
||||
CPaintDC dc(this); // device context for painting
|
||||
|
||||
//Displays BackGround bitmap
|
||||
CDC pdc;
|
||||
pdc.CreateCompatibleDC(&dc);
|
||||
pdc.SelectObject(m_pri_cBackgroundBitmap);
|
||||
|
||||
//Gets Bitmap Size
|
||||
short wBitmapHeight, wBitmapWidth;
|
||||
wBitmapHeight = wBitmapWidth = 160;
|
||||
CRect crClientRect;
|
||||
GetClientRect(crClientRect);
|
||||
char cXTileNumber = crClientRect.Width() / wBitmapWidth + 1;
|
||||
char cYTileNumber = crClientRect.Height() / wBitmapHeight + 1;
|
||||
char cXC, cYC;
|
||||
|
||||
for (cXC = 0; cXC < cXTileNumber; cXC ++)
|
||||
{
|
||||
for (cYC = 0; cYC < cYTileNumber; cYC ++)
|
||||
{
|
||||
//Tiles Bitmap
|
||||
dc.BitBlt(cXC * wBitmapWidth,
|
||||
cYC * wBitmapHeight,
|
||||
wBitmapHeight, wBitmapWidth,
|
||||
&pdc,
|
||||
0, 0,
|
||||
SRCCOPY);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Do not call CDialog::OnPaint() for painting messages
|
||||
}
|
||||
#endif //ERO_BITMAP_AS_BACKGROUND
|
171
Rayman_X/cpa/tempgrp/ERO/Src/ErO_Op.cpp
Normal file
@@ -0,0 +1,171 @@
|
||||
// Error Operator
|
||||
//
|
||||
// Defined by YB
|
||||
//////////////////////////
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "ErOTeam.hpp"
|
||||
|
||||
#undef CPA_WANTS_IMPORT
|
||||
#undef CPA_EXPORT
|
||||
#define CPA_WANTS_EXPORT
|
||||
#include "ErO_Err.hpp"
|
||||
#undef CPA_WANTS_EXPORT
|
||||
#define CPA_WANTS_IMPORT
|
||||
|
||||
//Module Info
|
||||
CString g_csModuleName;
|
||||
|
||||
//Source Info
|
||||
CString g_csCurrentFileName;
|
||||
short g_wCurrentFileLine;
|
||||
CString g_csLastModif;
|
||||
|
||||
//Global Info
|
||||
CString g_csCurrentAction;
|
||||
CString g_csCurrentFunction;
|
||||
CString g_csAddedInfo;
|
||||
enum ERROR_eErrorGravity g_eErrorGravity;
|
||||
|
||||
//Script Info
|
||||
CString g_csCurrentScriptFileName;
|
||||
short g_wCurrentScriptLine;
|
||||
|
||||
//Programmers Info
|
||||
ErrorOperator_TeamList g_clListOfTeams;
|
||||
|
||||
CStringList g_cslGravityMessages;
|
||||
CStringList g_cslGravityExplanations;
|
||||
|
||||
extern HMODULE g_hModule;
|
||||
|
||||
//************************************************************************************
|
||||
void ERROR_g_fn_vSetGlobalInfo(CString _csCurrentAction,
|
||||
CString _csCurrentFunction,
|
||||
enum ERROR_eErrorGravity _eErrorGravity,
|
||||
CString _csAddedInfo,
|
||||
CString _csModuleName /*= ""*/)
|
||||
{
|
||||
g_eErrorGravity = _eErrorGravity;
|
||||
g_csCurrentAction = _csCurrentAction;
|
||||
g_csCurrentFunction = _csCurrentFunction;
|
||||
g_csAddedInfo = _csAddedInfo;
|
||||
g_csModuleName = _csModuleName;
|
||||
}
|
||||
|
||||
//************************************************************************************
|
||||
void ERROR_g_fn_vSetSourceInfo(CString _csCurrentSourceFile,
|
||||
short _wLine,
|
||||
CString _csDate)
|
||||
{
|
||||
g_csCurrentFileName = _csCurrentSourceFile;
|
||||
g_wCurrentFileLine = _wLine;
|
||||
g_csLastModif = _csDate;
|
||||
}
|
||||
|
||||
//************************************************************************************
|
||||
void ERROR_g_fn_vResetGlobalInfo()
|
||||
{
|
||||
g_eErrorGravity = E_ERROR_GRAVITY_UNKNOWN;
|
||||
g_csCurrentAction = "";
|
||||
g_csCurrentFunction = "";
|
||||
g_csAddedInfo = "";
|
||||
g_csModuleName = "";
|
||||
}
|
||||
|
||||
//************************************************************************************
|
||||
void ERROR_g_fn_vResetSourceInfo()
|
||||
{
|
||||
g_csCurrentFileName = "";
|
||||
g_wCurrentFileLine = -1;
|
||||
g_csLastModif = "";
|
||||
}
|
||||
|
||||
//************************************************************************************
|
||||
void ERROR_g_fn_vSetScriptInfo(CString _csCurrentScriptFileName,
|
||||
short _wCurrentScriptFileLine)
|
||||
{
|
||||
g_csCurrentScriptFileName = _csCurrentScriptFileName;
|
||||
g_wCurrentScriptLine = _wCurrentScriptFileLine;
|
||||
}
|
||||
|
||||
//************************************************************************************
|
||||
void ERROR_g_fn_vResetScriptInfo()
|
||||
{
|
||||
g_csCurrentScriptFileName = "";
|
||||
g_wCurrentScriptLine = -1;
|
||||
}
|
||||
|
||||
//************************************************************************************
|
||||
void ERROR_g_fn_vAddAModuleDescriptor(CString _csModuleName,
|
||||
CString _csModuleVersion,
|
||||
CString _csMainProgrammerName,
|
||||
CString _csMainProgrammerPhoneNumber,
|
||||
CString _csMainProgrammerEMailAddress,
|
||||
CString _csResponsibleName,
|
||||
CString _csResponsiblePhoneNumber,
|
||||
CString _csResponsibleEMailAddress,
|
||||
CString _csSecondProgrammerName,
|
||||
CString _csSecondProgrammerPhoneNumber,
|
||||
CString _csSecondProgrammerEMailAddress
|
||||
)
|
||||
{
|
||||
g_clListOfTeams.m_pub_fn_pclAddTeam(_csModuleName,
|
||||
_csModuleVersion,
|
||||
_csMainProgrammerName,
|
||||
_csMainProgrammerPhoneNumber,
|
||||
_csMainProgrammerEMailAddress,
|
||||
_csResponsibleName,
|
||||
_csResponsiblePhoneNumber,
|
||||
_csResponsibleEMailAddress,
|
||||
_csSecondProgrammerName,
|
||||
_csSecondProgrammerPhoneNumber,
|
||||
_csSecondProgrammerEMailAddress);
|
||||
|
||||
//Updates File
|
||||
//Initializing file name
|
||||
char a_cBuffer[MAX_PATH];
|
||||
GetModuleFileName(g_hModule, a_cBuffer, MAX_PATH);
|
||||
CString csFileName = a_cBuffer;
|
||||
|
||||
short wIndex = csFileName.ReverseFind('\\');
|
||||
if ( wIndex != -1 )
|
||||
csFileName = csFileName.Left(wIndex + 1);
|
||||
|
||||
csFileName += "ErrorOut.txt";
|
||||
|
||||
CStdioFile cfErrorOutFile;
|
||||
|
||||
if ( cfErrorOutFile.Open(csFileName, CFile::modeReadWrite | CFile::modeCreate | CFile::typeText ) )
|
||||
{
|
||||
CString csCurrentString;
|
||||
|
||||
csCurrentString = "Error Operator Module\n";
|
||||
cfErrorOutFile.WriteString(csCurrentString);
|
||||
csCurrentString = "---------------------\n";
|
||||
cfErrorOutFile.WriteString(csCurrentString);
|
||||
csCurrentString = "\n";
|
||||
cfErrorOutFile.WriteString(csCurrentString);
|
||||
csCurrentString = "At last run, known modules were :\n";
|
||||
cfErrorOutFile.WriteString(csCurrentString);
|
||||
csCurrentString = "\n";
|
||||
cfErrorOutFile.WriteString(csCurrentString);
|
||||
|
||||
ErrorOperator_Team *pclCurrentTeam;
|
||||
POSITION pos = g_clListOfTeams.GetHeadPosition();
|
||||
while ( pos != NULL )
|
||||
{
|
||||
pclCurrentTeam = g_clListOfTeams.GetNext(pos);
|
||||
|
||||
csCurrentString = pclCurrentTeam->m_csModuleName + " (" + pclCurrentTeam->m_csMainProgrammerName + ")\n";
|
||||
cfErrorOutFile.WriteString(csCurrentString);
|
||||
}
|
||||
|
||||
csCurrentString = "\n";
|
||||
cfErrorOutFile.WriteString(csCurrentString);
|
||||
csCurrentString = "---------------------\n";
|
||||
cfErrorOutFile.WriteString(csCurrentString);
|
||||
|
||||
cfErrorOutFile.Close();
|
||||
}
|
||||
}
|
58
Rayman_X/cpa/tempgrp/ERO/Src/ErO_Priv.cpp
Normal file
@@ -0,0 +1,58 @@
|
||||
// ErO Module : private global functions
|
||||
//
|
||||
// YB
|
||||
/////////////////////////////////////////////
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "ErO_Priv.hpp"
|
||||
|
||||
#include "ErO_Op.hpp"
|
||||
|
||||
extern BOOL ERO_g_bInitDone;
|
||||
|
||||
//************************************************************************
|
||||
void ERO_fn_vInit()
|
||||
{
|
||||
ASSERT( !ERO_g_bInitDone );
|
||||
|
||||
//Fills lists of messages
|
||||
g_cslGravityMessages.AddTail("Warning");
|
||||
g_cslGravityMessages.AddTail("Instability Warning");
|
||||
g_cslGravityMessages.AddTail("Fatal Error");
|
||||
g_cslGravityMessages.AddTail("Unknown ...");
|
||||
|
||||
g_cslGravityExplanations.AddTail("Something happened and it should not");
|
||||
g_cslGravityExplanations.AddTail("Something happened which could cause the program to work strangely");
|
||||
g_cslGravityExplanations.AddTail("An error has occured and the program will probably fail");
|
||||
g_cslGravityExplanations.AddTail("The level of Error is unknown : it could be fatal !");
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErO_fn_vBuildStringListForInfos(CString _csOriginalString,
|
||||
CStringList *_pclList)
|
||||
{
|
||||
const CString c_csReturn = '\n';
|
||||
|
||||
if ( !_csOriginalString.IsEmpty() )
|
||||
{
|
||||
CString csTempString(_csOriginalString);
|
||||
short wIndex = 0;
|
||||
BOOL bReturnFound = FALSE;
|
||||
|
||||
while ( wIndex < csTempString.GetLength() )
|
||||
{
|
||||
bReturnFound = ( csTempString.GetAt(wIndex) == c_csReturn );
|
||||
|
||||
if ( !bReturnFound )
|
||||
wIndex ++;
|
||||
else
|
||||
{
|
||||
_pclList->AddTail(csTempString.Left(wIndex));
|
||||
csTempString = csTempString.Right(csTempString.GetLength() - wIndex - 1);
|
||||
|
||||
wIndex = 0;
|
||||
}
|
||||
}
|
||||
_pclList->AddTail(csTempString);
|
||||
}
|
||||
}
|
59
Rayman_X/cpa/tempgrp/ERO/Src/ErO_Stat.cpp
Normal file
@@ -0,0 +1,59 @@
|
||||
// ErO_Stat.cpp : implementation file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "ErO_Stat.hpp"
|
||||
|
||||
#include "ErO_DgIf.hpp"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ErO_StaticForMoreInfos
|
||||
|
||||
BEGIN_MESSAGE_MAP(ErO_StaticForMoreInfos, CStatic)
|
||||
//{{AFX_MSG_MAP(ErO_StaticForMoreInfos)
|
||||
ON_WM_MOUSEMOVE()
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
//***************************************************************************
|
||||
ErO_StaticForMoreInfos::ErO_StaticForMoreInfos()
|
||||
{
|
||||
m_pri_tdeType = ERO_STATIC_TYPE__UNKNOWN;
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
ErO_StaticForMoreInfos::~ErO_StaticForMoreInfos()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ErO_StaticForMoreInfos message handlers
|
||||
|
||||
//***************************************************************************
|
||||
void ErO_StaticForMoreInfos::OnMouseMove(UINT nFlags, CPoint point)
|
||||
{
|
||||
//Displays additonnal messages
|
||||
CRect crWindowRect;
|
||||
GetWindowRect(crWindowRect);
|
||||
// CPoint cpPoint = crWindowRect.BottomRight();
|
||||
CPoint cpPoint = crWindowRect.TopLeft();
|
||||
|
||||
ErO_MoreInfoDialog dial(this, cpPoint, m_pri_tdeType);
|
||||
dial.DoModal();
|
||||
|
||||
CStatic::OnMouseMove(nFlags, point);
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
void ErO_StaticForMoreInfos::m_pub_fn_vSetType(ErO_tdeStaticType _tdeType)
|
||||
{
|
||||
m_pri_tdeType = _tdeType;
|
||||
}
|
6
Rayman_X/cpa/tempgrp/ERO/Src/StdAfx.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
// stdafx.cpp : source file that includes just the standard includes
|
||||
// Err.pch will be the pre-compiled header
|
||||
// stdafx.obj will contain the pre-compiled type information
|
||||
|
||||
#include "stdafx.h"
|
||||
|
27
Rayman_X/cpa/tempgrp/ERO/Src/_DLLCom.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "ErO_op.hpp"
|
||||
#include "ErO_Priv.hpp"
|
||||
|
||||
static AFX_EXTENSION_MODULE NEAR extensionDLL = { NULL, NULL };
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// Global vars
|
||||
HMODULE g_hModule = 0;
|
||||
BOOL ERO_g_bInitDone = FALSE;
|
||||
|
||||
|
||||
//========================================================================
|
||||
// Get current CPA version
|
||||
//========================================================================
|
||||
void __declspec(dllexport) ERO_fn_vInitModule(HMODULE _hModule)
|
||||
{
|
||||
g_hModule = _hModule;
|
||||
|
||||
if ( !ERO_g_bInitDone )
|
||||
{
|
||||
ERO_fn_vInit();
|
||||
ERO_g_bInitDone = TRUE;
|
||||
}
|
||||
}
|
||||
|