- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
(extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
BT game source (never mixed into CODE/). Round 1-3 state:
* 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
(BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
since 1996.
* BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
its binary-recorded line 400 exactly.
* BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
(Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
TeamScore=12 flagged [T4]).
* MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
(VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
the period compiler is the drift detector).
* Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
(per-TU verification sweep under authentic OPT.MAK flags).
* README: corrected roadmap - MECH.HPP is the capstone grown with the mech
TU reconstructions; BTREG.CPP green = the header-family milestone.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
136 lines
3.5 KiB
Plaintext
136 lines
3.5 KiB
Plaintext
<<[H]TDLGClient [[TDialog]]
|
|
##{hheader.snp}
|
|
#include <owl\owlpch.h>
|
|
#pragma hdrstop
|
|
|
|
##<<TApplication QUERY_FILENAME_CPP [[Filename]]
|
|
#include "[[Filename]].rh" // Definition of all resources.
|
|
|
|
|
|
##--BEGIN-- !@OPT_APPL_DOCVIEW
|
|
//{{TDialog = [[TDialog]]}}
|
|
class [[TDialog]] : public TDialog {
|
|
public:
|
|
##QUERY_DLOG [[DLogRsrc]]
|
|
[[TDialog]] (TWindow *parent, TResId resId = [[DLogRsrc]], TModule *module = 0);
|
|
virtual ~[[TDialog]] ();
|
|
|
|
}; //{{[[TDialog]]}}
|
|
##--END-- !@OPT_APPL_DOCVIEW
|
|
##--BEGIN-- @OPT_APPL_DOCVIEW
|
|
//{{TDialog = [[TDialog]]}}
|
|
class [[TDialog]] : public TDialog, public TView {
|
|
public:
|
|
##QUERY_DLOG [[DLogRsrc]]
|
|
// [[TDialog]] (TWindow *parent, TResId resId = [[DLogRsrc]], TModule *module = 0); //{{DIALOG_ASSOCIATION}}
|
|
|
|
[[TDialog]] (TDocument& doc, TWindow* parent = 0);
|
|
virtual ~[[TDialog]] ();
|
|
|
|
static const char far* StaticName() {return "Dialog View";} // put in resource
|
|
|
|
//
|
|
// inherited virtuals from TView
|
|
//
|
|
const char far* GetViewName() {return StaticName();}
|
|
TWindow* GetWindow() {return (TWindow*)this;}
|
|
bool SetDocTitle(const char far* docname, int index)
|
|
{ return TWindow::SetDocTitle(docname, index); }
|
|
private:
|
|
//
|
|
// event handlers
|
|
//
|
|
bool VnIsWindow(HWND hWnd) {return HWindow == hWnd;}
|
|
|
|
//{{[[TDialog]]VIRTUAL_BEGIN}}
|
|
public:
|
|
virtual bool CanClose ();
|
|
##:DBVirtual(\\"[[TDialog]]", "CanClose")
|
|
//{{[[TDialog]]VIRTUAL_END}}
|
|
|
|
//{{[[TDialog]]RSP_TBL_BEGIN}}
|
|
protected:
|
|
//{{[[TDialog]]RSP_TBL_END}}
|
|
DECLARE_RESPONSE_TABLE([[TDialog]]);
|
|
}; //{{[[TDialog]]}}
|
|
##--END-- @OPT_APPL_DOCVIEW
|
|
##{hfooter.snp}
|
|
>>[H]TDLGClient [[TDialog]]
|
|
|
|
|
|
<<[CPP]TDLGClient [[TDialog]]
|
|
##{cheader.snp}
|
|
#include <owl\owlpch.h>
|
|
#pragma hdrstop
|
|
|
|
##<<TApplication QUERY_FILE_H [[FileName]]
|
|
#include "[[FileName]]"
|
|
##QUERY_FILE_H [[FileName]]
|
|
#include "[[FileName]]"
|
|
|
|
|
|
//{{[[TDialog]] Implementation}}
|
|
|
|
|
|
##--BEGIN-- !@OPT_APPL_DOCVIEW
|
|
## --BEGIN-- @QUERY_APPL_COMMENT == VALUE_VERBOSE
|
|
//////////////////////////////////////////////////////////
|
|
// [[TDialog]]
|
|
// ==========
|
|
// Construction/Destruction handling.
|
|
## --END-- @QUERY_APPL_COMMENT == VALUE_VERBOSE
|
|
[[TDialog]]::[[TDialog]] (TWindow *parent, TResId resId, TModule *module)
|
|
: TDialog(parent, resId, module)
|
|
{
|
|
// INSERT>> Your constructor code here.
|
|
}
|
|
|
|
|
|
[[TDialog]]::~[[TDialog]] ()
|
|
{
|
|
Destroy();
|
|
|
|
// INSERT>> Your destructor code here.
|
|
}
|
|
##--END-- !@OPT_APPL_DOCVIEW
|
|
##--BEGIN-- @OPT_APPL_DOCVIEW
|
|
//
|
|
// Build a response table for all messages/commands handled
|
|
// by the application.
|
|
//
|
|
DEFINE_RESPONSE_TABLE1([[TDialog]], TDialog)
|
|
//{{[[TDialog]]RSP_TBL_BEGIN}}
|
|
//{{[[TDialog]]RSP_TBL_END}}
|
|
END_RESPONSE_TABLE;
|
|
|
|
|
|
## --BEGIN-- @QUERY_APPL_COMMENT == VALUE_VERBOSE
|
|
//////////////////////////////////////////////////////////
|
|
// [[TDialog]]
|
|
// ==========
|
|
// Construction/Destruction handling.
|
|
## --END-- @QUERY_APPL_COMMENT == VALUE_VERBOSE
|
|
[[TDialog]]::[[TDialog]] (TDocument& doc, TWindow* parent)
|
|
##: @QUERY_APPL_DLGCLIENT [[ClientClass]]
|
|
##: <<*ClientClass QUERY_DLOG [[DLogRsrc]]
|
|
: TView(doc), TDialog(parent, [[DLogRsrc]])
|
|
{
|
|
// INSERT>> Your constructor code here.
|
|
|
|
}
|
|
|
|
|
|
[[TDialog]]::~[[TDialog]] ()
|
|
{
|
|
// INSERT>> Your destructor code here.
|
|
|
|
}
|
|
|
|
|
|
bool [[TDialog]]::CanClose ()
|
|
{
|
|
return TWindow::CanClose() && Doc->CanClose();
|
|
}
|
|
##--END-- @OPT_APPL_DOCVIEW
|
|
>>[CPP]TDLGClient [[TDialog]]
|