EDN Admin
Well-known member
I get the following errors attempting to compile one module in my application. Ive included the header file where CProcess is defined as well as the portion of the file where the error is incurred.<br/>
1>------ Build started: Project: ReSource, Configuration: Debug Win32 ------<br/>
1>Compiling...<br/>
1>AppTools.cpp<br/>
1> c:usersfreddocumentsvisual studio 2008projectsresourceresourceresourceapptools.cpp(51) : error C2146: syntax error : missing ; before identifier TheProcess <br/>
1>c:usersfreddocumentsvisual studio 2008projectsresourceresourceresourceapptools.cpp(51) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br/>
1>c:usersfreddocumentsvisual studio 2008projectsresourceresourceresourceapptools.cpp(51) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br/>
...
1>c:usersfreddocumentsvisual studio 2008projectsresourceresourceresourceapptools.cpp(259) : fatal error C1003: error count exceeds 100; stopping compilation<br/>
1>Build log was saved at "file://c:UsersFredDocumentsVisual Studio 2008ProjectsReSourceReSourceReSourceDebugBuildLog.htm"<br/>
1>ReSource - 109 error(s), 2 warning(s)<br/>
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The final line of this code snippet is where the error occurs:
#include "stdafx.h"
#include "EngineAPI.h" // SaveGBL, CsectHasCapex<br/>
#include "GuiAPI.h"<br/>
#include "structs.h"<br/>
#include "PbcTables.h" // GblInfo<br/>
#include "PBCapi.h"<br/>
#include "BatchProc.h"<br/>
#include "Exception.h"<br/>
#include "AppInfo.h"<br/>
<br/>
#ifdef _DEBUG<br/>
#define new DEBUG_NEW<br/>
#undef THIS_FILE<br/>
static char THIS_FILE[] = __FILE__;<br/>
#endif<br/>
<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
// Extern Declarations<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
extern "C" unsigned int InitDeasmSession( void );<br/>
extern "C" unsigned int InitDecompSession( void );<br/>
<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
// Object Declarations<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
CProcess TheProcess; <br/>
Here is the header file where CProcess is declared:
// AppTools.h : header file<br/>
//<br/>
// CG: This file was added by the Splash Screen component.<br/>
<br/>
#ifndef _APPTOOLS_H<br/>
#define _APPTOOLS_H<br/>
<br/>
// 03/12/99 LH<br/>
//////////////////////////////////////////////////////////////////////////////<br/>
// CProcess<br/>
//////////////////////////////////////////////////////////////////////////////<br/>
<br/>
class CProcess<br/>
{<br/>
// Construction<br/>
public:<br/>
<span style="white-space
re CProcess();<br/>
<br/>
// Attributes<br/>
public:<br/>
enum ProcessModes { BATCHMODE = 1, USERMODE };<br/>
<br/>
protected:<br/>
enum ProcessIds m_eProcess;<br/>
BOOL m_bInSession;<br/>
BOOL m_bUserMode;<br/>
BOOL m_bBatchMode;<br/>
CString m_sCurrentFile;<br/>
CString m_sCsect;<br/>
CString m_sContext;<br/>
CString m_sSourceFile;<br/>
<br/>
// Operations<br/>
public:<br/>
CString GetCurrentFile();<br/>
CString GetSourceFile();<br/>
CString GetWorkFile( CString sExt );<br/>
CString GetCompletedPath();<br/>
CString OpenSession( CString sFile, CString sCsect );<br/>
CString GetCurrentCsect();<br/>
void IssueCommand( CString sCommand );<br/>
void CloseSession();<br/>
BOOL IsInSession();<br/>
enum ProcessIds GetCurrentProcess();<br/>
enum Languages GetLanguage();<br/>
void SetCurrentProcess( enum ProcessIds eProcess );<br/>
void SetCurrentMode( enum ProcessModes eMode, BOOL bFlag );<br/>
BOOL GetCurrentMode( enum ProcessModes eMode );<br/>
UINT Run( enum ProcessIds eProcess, UINT nFlag = TRUE );<br/>
<br/>
// Implementation<br/>
public:<br/>
<span style="white-space
re virtual ~CProcess();<br/>
};<br/>
<br/>
// 09/30/97 LH<br/>
//////////////////////////////////////////////////////////////////////////////<br/>
// CGblInfo<br/>
//////////////////////////////////////////////////////////////////////////////<br/>
<br/>
enum GBLFields { // LFH 07/21/98 <br/>
InfoWorkFileVersion, <br/>
InfoLanguage,<br/>
InfoInputFile,<br/>
InfoInputPath,<br/>
InfoFileFormat,<br/>
InfoOperatingSystem, <br/>
InfoCompileDate,<br/>
InfoCompileTime, <br/>
InfoCsectSize,<br/>
InfoEstimatedLOC,<br/>
InfoActualLOC,<br/>
InfoProcedureLOC, <br/>
InfoProcedureBytes,<br/>
InfoDataDivLOC,<br/>
InfoDataDivBytes,<br/>
InfoPatternCoverage,<br/>
InfoDialect,<br/>
InfoCsectName,<br/>
InfoTranslator1,<br/>
InfoTranslator2,<br/>
InfoLinkEditor,<br/>
InfoLinkEditDate,<br/>
InfoLangVRMP,<br/>
InfoLangVersion,<br/>
InfoLangRelease,<br/>
InfoLangModification,<br/>
InfoLangPTF,<br/>
InfoTran2VRMP,<br/>
InfoTran2Version,<br/>
InfoTran2Release,<br/>
InfoTran2Modification,<br/>
InfoTran2PTF,<br/>
InfoLinkVRMP,<br/>
InfoLinkVersion,<br/>
InfoLinkRelease,<br/>
InfoLinkModification,<br/>
InfoLinkPTF,<br/>
InfoCapexVRMP,<br/>
InfoCapexVersion,<br/>
InfoCapexRelease,<br/>
InfoCapexModification,<br/>
InfoCapexPTF,<br/>
InfoCicsVRMP,<br/>
InfoCicsVersion,<br/>
InfoCicsRelease,<br/>
InfoCicsModification,<br/>
InfoCicsPTF,<br/>
InfoDl1VRMP,<br/>
InfoDl1Version,<br/>
InfoDl1Release,<br/>
InfoDl1Modification,<br/>
InfoDl1PTF,<br/>
InfoDb2VRMP,<br/>
InfoDb2Version,<br/>
InfoDb2Release,<br/>
InfoDb2Modification,<br/>
InfoDb2PTF,<br/>
InfoTelonVRMP,<br/>
InfoTelonVersion,<br/>
InfoTelonRelease,<br/>
InfoTelonModification,<br/>
InfoTelonPTF,<br/>
InfoAdabasVRMP,<br/>
InfoAdabasVersion,<br/>
InfoAdabasRelease,<br/>
InfoAdabasModification,<br/>
InfoAdabasPTF,<br/>
InfoIdmsVRMP,<br/>
InfoIdmsVersion,<br/>
InfoIdmsRelease,<br/>
InfoIdmsModification,<br/>
InfoIdmsPTF,<br/>
InfoSupra1VRMP,<br/>
InfoSupra1Version,<br/>
InfoSupra1Release,<br/>
InfoSupra1Modification,<br/>
InfoSupra1PTF,<br/>
InfoFlagByte1,<br/>
InfoFlagByte2,<br/>
InfoFlagByte3,<br/>
InfoFlagByte4,<br/>
InfoFlagByte5,<br/>
InfoFlagByte6,<br/>
InfoFlagByte7,<br/>
InfoFlagByte8,<br/>
InfoFlagByte9,<br/>
InfoFlagByte10,<br/>
InfoFlagByte11,<br/>
InfoOutDD,<br/>
InfoLodmodName,<br/>
InfoSuperProId,<br/>
InfoMemo,<br/>
InfoDb2FlagByte1,<br/>
InfoDb2FlagByte2,<br/>
InfoRecoveryStatus,<br/>
InfoAsmId,<br/>
InfoSrcId,<br/>
InfoLstId<br/>
};<br/>
<br/>
class CGblInfo <br/>
{<br/>
// Construction<br/>
public:<br/>
<span style="white-space
re CGblInfo();<br/>
// Attributes<br/>
<br/>
// Operations<br/>
public:<br/>
CString GetVRMP( enum GBLFields nField );<br/>
CString GetFlagByte( enum GBLFields nField );<br/>
CString GetString( enum GBLFields nField, BOOL bEnclose = TRUE );<br/>
int GetInt( enum GBLFields nField );<br/>
CString GetHex( enum GBLFields nField );<br/>
void SetInt( enum GBLFields nField, int nValue );<br/>
void SetString( enum GBLFields nField, CString sField );<br/>
<br/>
protected:<br/>
CString GetFileFormat( int nValue );<br/>
CString GetSuperProId();<br/>
CString GetMemo();<br/>
<br/>
// Implementation<br/>
public:<br/>
<span style="white-space
re virtual ~CGblInfo();<br/>
};<br/>
<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
// CInfoDlg dialog<br/>
<br/>
#include "ChildDlg.h"<br/>
class CInfoDlg : public CChildDlg<br/>
{<br/>
// Construction<br/>
public:<br/>
<span style="white-space
re CInfoDlg(CWnd* pParent = NULL); // standard constructor<br/>
<br/>
// Dialog Data<br/>
<span style="white-space
re //{{AFX_DATA(CInfoDlg)<br/>
<span style="white-space
re enum { IDD = IDD_INFO };<br/>
<span style="white-space
re // NOTE: the ClassWizard will add data members here<br/>
<span style="white-space
re //}}AFX_DATA<br/>
<br/>
// Overrides<br/>
<span style="white-space
re // ClassWizard generated virtual function overrides<br/>
<span style="white-space
re //{{AFX_VIRTUAL(CInfoDlg)<br/>
<span style="white-space
re protected:<br/>
<span style="white-space
re virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support<br/>
<span style="white-space
re //}}AFX_VIRTUAL<br/>
<br/>
// Implementation<br/>
protected:<br/>
void WriteInfo();<br/>
void Write( BOOL bFlag, CString sText );<br/>
void Write( CString sLabel, CString sText, BOOL bShowUnknown = FALSE );<br/>
void Write( CString sLabel, int nValue, BOOL bShowUnknown = FALSE );<br/>
BOOL WriteRelease( CString sLabel, unsigned char nVer, unsigned char nRel, <br/>
unsigned char nMod, unsigned char cPTF, BOOL bShowUnknown = FALSE );<br/>
CString GetOptionString();<br/>
CString GetCodeOptions();<br/>
public:<br/>
<span style="white-space
re // Generated message map functions<br/>
<span style="white-space
re //{{AFX_MSG(CInfoDlg)<br/>
<span style="white-space
re virtual BOOL OnInitDialog();<br/>
<span style="white-space
re //}}AFX_MSG<br/>
<span style="white-space
re DECLARE_MESSAGE_MAP()<br/>
};<br/>
<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
// CCsectSelDlg dialog<br/>
<br/>
class CCsectSelDlg : public CDialog<br/>
{<br/>
// Construction<br/>
public:<br/>
<span style="white-space
re CCsectSelDlg(struct Esd *pEsdList, CWnd* pParent = NULL);<br/>
<br/>
// Dialog Data<br/>
public:<br/>
<span style="white-space
re CString<span style="white-space
re
m_sSelected;<br/>
<br/>
protected:<br/>
BOOL m_bFilter;<br/>
CStringList m_sList;<br/>
struct Esd *m_pEsdList;<br/>
<br/>
<span style="white-space
re //{{AFX_DATA(CCsectSelDlg)<br/>
<span style="white-space
re enum { IDD = IDD_CSECT };<br/>
<span style="white-space
re CListBox<span style="white-space
re
m_CsectList;<br/>
<span style="white-space
re //}}AFX_DATA<br/>
<br/>
// Overrides<br/>
<span style="white-space
re // ClassWizard generated virtual function overrides<br/>
<span style="white-space
re //{{AFX_VIRTUAL(CCsectSelDlg)<br/>
<span style="white-space
re protected:<br/>
<span style="white-space
re virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support<br/>
<span style="white-space
re //}}AFX_VIRTUAL<br/>
<br/>
// Implementation<br/>
public:<br/>
int MakeList();<br/>
<br/>
protected:<br/>
<span style="white-space
re void FillList();<br/>
<br/>
protected:<br/>
<span style="white-space
re // Generated message map functions<br/>
<span style="white-space
re //{{AFX_MSG(CCsectSelDlg)<br/>
<span style="white-space
re virtual BOOL OnInitDialog();<br/>
<span style="white-space
re virtual void OnOK();<br/>
<span style="white-space
re afx_msg void OnCsectFilter();<br/>
<span style="white-space
re afx_msg void OnDblclkCsectlist();<br/>
<span style="white-space
re //}}AFX_MSG<br/>
<span style="white-space
re DECLARE_MESSAGE_MAP()<br/>
};<br/>
<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
// Splash Screen class<br/>
<br/>
class CSplashWnd : public CWnd<br/>
{<br/>
// Construction<br/>
protected:<br/>
<span style="white-space
re CSplashWnd();<br/>
<br/>
// Attributes:<br/>
public:<br/>
<span style="white-space
re CBitmap m_bitmap;<br/>
<br/>
// Operations<br/>
public:<br/>
<span style="white-space
re static void EnableSplashScreen(BOOL bEnable = TRUE);<br/>
<span style="white-space
re static void ShowSplashScreen(CWnd* pParentWnd = NULL);<br/>
<span style="white-space
re static BOOL PreTranslateAppMessage(MSG* pMsg);<br/>
<br/>
// Overrides<br/>
<span style="white-space
re // ClassWizard generated virtual function overrides<br/>
<span style="white-space
re //{{AFX_VIRTUAL(CSplashWnd)<br/>
<span style="white-space
re //}}AFX_VIRTUAL<br/>
<br/>
// Implementation<br/>
public:<br/>
<span style="white-space
re ~CSplashWnd();<br/>
<span style="white-space
re virtual void PostNcDestroy();<br/>
<br/>
protected:<br/>
<span style="white-space
re BOOL Create(CWnd* pParentWnd = NULL);<br/>
<span style="white-space
re void HideSplashScreen();<br/>
<span style="white-space
re static BOOL c_bShowSplashWnd;<br/>
<span style="white-space
re static CSplashWnd* c_pSplashWnd;<br/>
<br/>
// Generated message map functions<br/>
protected:<br/>
<span style="white-space
re //{{AFX_MSG(CSplashWnd)<br/>
<span style="white-space
re afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);<br/>
<span style="white-space
re afx_msg void OnPaint();<br/>
<span style="white-space
re afx_msg void OnTimer(UINT nIDEvent);<br/>
<span style="white-space
re //}}AFX_MSG<br/>
<span style="white-space
re DECLARE_MESSAGE_MAP()<br/>
};<br/>
<br/>
// 01/26/97 LH<br/>
////////////////////////////////////////////////////////////////////////////<br/>
// CAboutDlg<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
<br/>
class CAboutDlg : public CDialog <br/>
{<br/>
// Construction<br/>
public:<br/>
<span style="white-space
re CAboutDlg( CWnd * pParent = NULL );// standard constructor<br/>
<br/>
// Dialog Data<br/>
<span style="white-space
re //{{AFX_DATA(CAboutDlg)<br/>
<span style="white-space
re enum { IDD = IDD_HELP_ABOUTBOX };<br/>
<span style="white-space
re // NOTE: the ClassWizard will add data members here<br/>
<span style="white-space
re //}}AFX_DATA<br/>
protected:<br/>
CString m_sBuildNo;<br/>
<br/>
// Overrides<br/>
<span style="white-space
re // ClassWizard generated virtual function overrides<br/>
<span style="white-space
re //{{AFX_VIRTUAL(CAboutDlg)<br/>
protected:<br/>
<span style="white-space
re virtual void DoDataExchange( CDataExchange * pDX ); // DDX/DDV support<br/>
<span style="white-space
re //}}AFX_VIRTUAL<br/>
<br/>
// Implementation<br/>
protected:<br/>
<span style="white-space
re // Generated message map functions<br/>
<span style="white-space
re //{{AFX_MSG(CAboutDlg)<br/>
<span style="white-space
re virtual BOOL OnInitDialog();<br/>
<span style="white-space
re afx_msg void OnTechsupport();<br/>
<span style="white-space
re //}}AFX_MSG<br/>
<span style="white-space
re DECLARE_MESSAGE_MAP()<br/>
};<br/>
<br/>
///////////////////////////////////////////////////////////////////////////////<br/>
// Exteral Declarations<br/>
///////////////////////////////////////////////////////////////////////////////<br/>
extern CProcess TheProcess;<br/>
extern CGblInfo TheGblInfo;<br/>
extern enum RecoveryStatus GetRecoveryStatus( CString& sGblPath );<br/>
extern BOOL GetCsectInfo( CString& sGblPath, struct info *ptInfo );<br/>
extern CString GetStatusText( enum RecoveryStatus eStatus, CString &sPath );<br/>
extern CString GetOS( enum OperatingSystems nValue );<br/>
extern CString GetUserName( UINT nId );<br/>
<br/>
#endif
<br/>
<br/>
View the full article
1>------ Build started: Project: ReSource, Configuration: Debug Win32 ------<br/>
1>Compiling...<br/>
1>AppTools.cpp<br/>
1> c:usersfreddocumentsvisual studio 2008projectsresourceresourceresourceapptools.cpp(51) : error C2146: syntax error : missing ; before identifier TheProcess <br/>
1>c:usersfreddocumentsvisual studio 2008projectsresourceresourceresourceapptools.cpp(51) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br/>
1>c:usersfreddocumentsvisual studio 2008projectsresourceresourceresourceapptools.cpp(51) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br/>
...
1>c:usersfreddocumentsvisual studio 2008projectsresourceresourceresourceapptools.cpp(259) : fatal error C1003: error count exceeds 100; stopping compilation<br/>
1>Build log was saved at "file://c:UsersFredDocumentsVisual Studio 2008ProjectsReSourceReSourceReSourceDebugBuildLog.htm"<br/>
1>ReSource - 109 error(s), 2 warning(s)<br/>
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The final line of this code snippet is where the error occurs:
#include "stdafx.h"
#include "EngineAPI.h" // SaveGBL, CsectHasCapex<br/>
#include "GuiAPI.h"<br/>
#include "structs.h"<br/>
#include "PbcTables.h" // GblInfo<br/>
#include "PBCapi.h"<br/>
#include "BatchProc.h"<br/>
#include "Exception.h"<br/>
#include "AppInfo.h"<br/>
<br/>
#ifdef _DEBUG<br/>
#define new DEBUG_NEW<br/>
#undef THIS_FILE<br/>
static char THIS_FILE[] = __FILE__;<br/>
#endif<br/>
<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
// Extern Declarations<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
extern "C" unsigned int InitDeasmSession( void );<br/>
extern "C" unsigned int InitDecompSession( void );<br/>
<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
// Object Declarations<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
CProcess TheProcess; <br/>
Here is the header file where CProcess is declared:
// AppTools.h : header file<br/>
//<br/>
// CG: This file was added by the Splash Screen component.<br/>
<br/>
#ifndef _APPTOOLS_H<br/>
#define _APPTOOLS_H<br/>
<br/>
// 03/12/99 LH<br/>
//////////////////////////////////////////////////////////////////////////////<br/>
// CProcess<br/>
//////////////////////////////////////////////////////////////////////////////<br/>
<br/>
class CProcess<br/>
{<br/>
// Construction<br/>
public:<br/>
<span style="white-space

<br/>
// Attributes<br/>
public:<br/>
enum ProcessModes { BATCHMODE = 1, USERMODE };<br/>
<br/>
protected:<br/>
enum ProcessIds m_eProcess;<br/>
BOOL m_bInSession;<br/>
BOOL m_bUserMode;<br/>
BOOL m_bBatchMode;<br/>
CString m_sCurrentFile;<br/>
CString m_sCsect;<br/>
CString m_sContext;<br/>
CString m_sSourceFile;<br/>
<br/>
// Operations<br/>
public:<br/>
CString GetCurrentFile();<br/>
CString GetSourceFile();<br/>
CString GetWorkFile( CString sExt );<br/>
CString GetCompletedPath();<br/>
CString OpenSession( CString sFile, CString sCsect );<br/>
CString GetCurrentCsect();<br/>
void IssueCommand( CString sCommand );<br/>
void CloseSession();<br/>
BOOL IsInSession();<br/>
enum ProcessIds GetCurrentProcess();<br/>
enum Languages GetLanguage();<br/>
void SetCurrentProcess( enum ProcessIds eProcess );<br/>
void SetCurrentMode( enum ProcessModes eMode, BOOL bFlag );<br/>
BOOL GetCurrentMode( enum ProcessModes eMode );<br/>
UINT Run( enum ProcessIds eProcess, UINT nFlag = TRUE );<br/>
<br/>
// Implementation<br/>
public:<br/>
<span style="white-space

};<br/>
<br/>
// 09/30/97 LH<br/>
//////////////////////////////////////////////////////////////////////////////<br/>
// CGblInfo<br/>
//////////////////////////////////////////////////////////////////////////////<br/>
<br/>
enum GBLFields { // LFH 07/21/98 <br/>
InfoWorkFileVersion, <br/>
InfoLanguage,<br/>
InfoInputFile,<br/>
InfoInputPath,<br/>
InfoFileFormat,<br/>
InfoOperatingSystem, <br/>
InfoCompileDate,<br/>
InfoCompileTime, <br/>
InfoCsectSize,<br/>
InfoEstimatedLOC,<br/>
InfoActualLOC,<br/>
InfoProcedureLOC, <br/>
InfoProcedureBytes,<br/>
InfoDataDivLOC,<br/>
InfoDataDivBytes,<br/>
InfoPatternCoverage,<br/>
InfoDialect,<br/>
InfoCsectName,<br/>
InfoTranslator1,<br/>
InfoTranslator2,<br/>
InfoLinkEditor,<br/>
InfoLinkEditDate,<br/>
InfoLangVRMP,<br/>
InfoLangVersion,<br/>
InfoLangRelease,<br/>
InfoLangModification,<br/>
InfoLangPTF,<br/>
InfoTran2VRMP,<br/>
InfoTran2Version,<br/>
InfoTran2Release,<br/>
InfoTran2Modification,<br/>
InfoTran2PTF,<br/>
InfoLinkVRMP,<br/>
InfoLinkVersion,<br/>
InfoLinkRelease,<br/>
InfoLinkModification,<br/>
InfoLinkPTF,<br/>
InfoCapexVRMP,<br/>
InfoCapexVersion,<br/>
InfoCapexRelease,<br/>
InfoCapexModification,<br/>
InfoCapexPTF,<br/>
InfoCicsVRMP,<br/>
InfoCicsVersion,<br/>
InfoCicsRelease,<br/>
InfoCicsModification,<br/>
InfoCicsPTF,<br/>
InfoDl1VRMP,<br/>
InfoDl1Version,<br/>
InfoDl1Release,<br/>
InfoDl1Modification,<br/>
InfoDl1PTF,<br/>
InfoDb2VRMP,<br/>
InfoDb2Version,<br/>
InfoDb2Release,<br/>
InfoDb2Modification,<br/>
InfoDb2PTF,<br/>
InfoTelonVRMP,<br/>
InfoTelonVersion,<br/>
InfoTelonRelease,<br/>
InfoTelonModification,<br/>
InfoTelonPTF,<br/>
InfoAdabasVRMP,<br/>
InfoAdabasVersion,<br/>
InfoAdabasRelease,<br/>
InfoAdabasModification,<br/>
InfoAdabasPTF,<br/>
InfoIdmsVRMP,<br/>
InfoIdmsVersion,<br/>
InfoIdmsRelease,<br/>
InfoIdmsModification,<br/>
InfoIdmsPTF,<br/>
InfoSupra1VRMP,<br/>
InfoSupra1Version,<br/>
InfoSupra1Release,<br/>
InfoSupra1Modification,<br/>
InfoSupra1PTF,<br/>
InfoFlagByte1,<br/>
InfoFlagByte2,<br/>
InfoFlagByte3,<br/>
InfoFlagByte4,<br/>
InfoFlagByte5,<br/>
InfoFlagByte6,<br/>
InfoFlagByte7,<br/>
InfoFlagByte8,<br/>
InfoFlagByte9,<br/>
InfoFlagByte10,<br/>
InfoFlagByte11,<br/>
InfoOutDD,<br/>
InfoLodmodName,<br/>
InfoSuperProId,<br/>
InfoMemo,<br/>
InfoDb2FlagByte1,<br/>
InfoDb2FlagByte2,<br/>
InfoRecoveryStatus,<br/>
InfoAsmId,<br/>
InfoSrcId,<br/>
InfoLstId<br/>
};<br/>
<br/>
class CGblInfo <br/>
{<br/>
// Construction<br/>
public:<br/>
<span style="white-space

// Attributes<br/>
<br/>
// Operations<br/>
public:<br/>
CString GetVRMP( enum GBLFields nField );<br/>
CString GetFlagByte( enum GBLFields nField );<br/>
CString GetString( enum GBLFields nField, BOOL bEnclose = TRUE );<br/>
int GetInt( enum GBLFields nField );<br/>
CString GetHex( enum GBLFields nField );<br/>
void SetInt( enum GBLFields nField, int nValue );<br/>
void SetString( enum GBLFields nField, CString sField );<br/>
<br/>
protected:<br/>
CString GetFileFormat( int nValue );<br/>
CString GetSuperProId();<br/>
CString GetMemo();<br/>
<br/>
// Implementation<br/>
public:<br/>
<span style="white-space

};<br/>
<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
// CInfoDlg dialog<br/>
<br/>
#include "ChildDlg.h"<br/>
class CInfoDlg : public CChildDlg<br/>
{<br/>
// Construction<br/>
public:<br/>
<span style="white-space

<br/>
// Dialog Data<br/>
<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<br/>
// Overrides<br/>
<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<br/>
// Implementation<br/>
protected:<br/>
void WriteInfo();<br/>
void Write( BOOL bFlag, CString sText );<br/>
void Write( CString sLabel, CString sText, BOOL bShowUnknown = FALSE );<br/>
void Write( CString sLabel, int nValue, BOOL bShowUnknown = FALSE );<br/>
BOOL WriteRelease( CString sLabel, unsigned char nVer, unsigned char nRel, <br/>
unsigned char nMod, unsigned char cPTF, BOOL bShowUnknown = FALSE );<br/>
CString GetOptionString();<br/>
CString GetCodeOptions();<br/>
public:<br/>
<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

};<br/>
<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
// CCsectSelDlg dialog<br/>
<br/>
class CCsectSelDlg : public CDialog<br/>
{<br/>
// Construction<br/>
public:<br/>
<span style="white-space

<br/>
// Dialog Data<br/>
public:<br/>
<span style="white-space


m_sSelected;<br/>
<br/>
protected:<br/>
BOOL m_bFilter;<br/>
CStringList m_sList;<br/>
struct Esd *m_pEsdList;<br/>
<br/>
<span style="white-space

<span style="white-space

<span style="white-space


m_CsectList;<br/>
<span style="white-space

<br/>
// Overrides<br/>
<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<br/>
// Implementation<br/>
public:<br/>
int MakeList();<br/>
<br/>
protected:<br/>
<span style="white-space

<br/>
protected:<br/>
<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

};<br/>
<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
// Splash Screen class<br/>
<br/>
class CSplashWnd : public CWnd<br/>
{<br/>
// Construction<br/>
protected:<br/>
<span style="white-space

<br/>
// Attributes:<br/>
public:<br/>
<span style="white-space

<br/>
// Operations<br/>
public:<br/>
<span style="white-space

<span style="white-space

<span style="white-space

<br/>
// Overrides<br/>
<span style="white-space

<span style="white-space

<span style="white-space

<br/>
// Implementation<br/>
public:<br/>
<span style="white-space

<span style="white-space

<br/>
protected:<br/>
<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<br/>
// Generated message map functions<br/>
protected:<br/>
<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

};<br/>
<br/>
// 01/26/97 LH<br/>
////////////////////////////////////////////////////////////////////////////<br/>
// CAboutDlg<br/>
/////////////////////////////////////////////////////////////////////////////<br/>
<br/>
class CAboutDlg : public CDialog <br/>
{<br/>
// Construction<br/>
public:<br/>
<span style="white-space

<br/>
// Dialog Data<br/>
<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

protected:<br/>
CString m_sBuildNo;<br/>
<br/>
// Overrides<br/>
<span style="white-space

<span style="white-space

protected:<br/>
<span style="white-space

<span style="white-space

<br/>
// Implementation<br/>
protected:<br/>
<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

};<br/>
<br/>
///////////////////////////////////////////////////////////////////////////////<br/>
// Exteral Declarations<br/>
///////////////////////////////////////////////////////////////////////////////<br/>
extern CProcess TheProcess;<br/>
extern CGblInfo TheGblInfo;<br/>
extern enum RecoveryStatus GetRecoveryStatus( CString& sGblPath );<br/>
extern BOOL GetCsectInfo( CString& sGblPath, struct info *ptInfo );<br/>
extern CString GetStatusText( enum RecoveryStatus eStatus, CString &sPath );<br/>
extern CString GetOS( enum OperatingSystems nValue );<br/>
extern CString GetUserName( UINT nId );<br/>
<br/>
#endif
<br/>
<br/>
View the full article