Commits

Palmer, 2E0EOL  committed 9897bd1

Start experimentally using rttbproj.lib and the C++ classes.

  • Participants
  • Parent commits 4ab491e

Comments (0)

Files changed (4)

File src/MainBrowseUnit.cpp

        		return;
 
         Application->MessageBox(
-        	"RTTB library not linked",
-                "Error: Library not linked",
-                MB_OK|MB_ICONEXCLAMATION
+        	this->OpenDialog1->FileName.c_str(),
+                "Opening file",
+                MB_OK|MB_ICONINFORMATION
         );
 
-        TRttbContainer *container = new TRttbContainer("rttbcontainername");
+        TRttbContainer *container = new TRttbContainer(this->OpenDialog1->FileName.c_str());
+       	TRttbFile *file = new TRttbFile(container, "hello_world.txt");
 }
 //---------------------------------------------------------------------------

File src/winrttb.bpr

 OBJFILES = winrttb.obj MainBrowseUnit.obj ..\rttbcap.obj
 RESFILES = winrttb.res
 RESDEPEN = $(RESFILES) MainBrowseUnit.dfm
-LIBFILES =
+LIBFILES = ..\rttbproj.lib
 LIBRARIES =
 SPARELIBS = Vcl40.lib
 PACKAGES = Vcl40.bpi Vclx40.bpi vcljpg40.bpi bcbsmp40.bpi Qrpt40.bpi Vcldb40.bpi \
 PATHRC = .;
 DEBUGLIBPATH = $(BCB)\lib\debug
 RELEASELIBPATH = $(BCB)\lib\release
-USERDEFINES =
+USERDEFINES = HAVE_CONFIG_H
 SYSDEFINES = _RTLDLL;NO_STRICT;USEPACKAGES
 # ---------------------------------------------------------------------------
-CFLAG1 = -I..\;$(BCB)\include;$(BCB)\include\vcl -Od -Hc -H=$(BCB)\lib\vcl40.csm -w -Ve \
-  -r- -a8 -k -y -v -vi- -c -b- -w-par -w-inl -Vx -tW -tWM \
+CFLAG1 = -I..\;..;$(BCB)\include;$(BCB)\include\vcl -Od -Hc -H=$(BCB)\lib\vcl40.csm -w \
+  -Ve -r- -a8 -k -y -v -vi- -c -b- -w-par -w-inl -Vx -tW -tWM \
   -D$(SYSDEFINES);$(USERDEFINES)
-PFLAGS = -U..\;$(BCB)\lib\obj;$(BCB)\lib;$(RELEASELIBPATH) \
-  -I..\;$(BCB)\include;$(BCB)\include\vcl -$YD -$W -$O- -v -JPHNE -M
-RFLAGS = -i..\;$(BCB)\include;$(BCB)\include\vcl
-AFLAGS = /i$(BCB)\include /i$(BCB)\include\vcl /mx /w2 /zi
-LFLAGS = -L..\;$(BCB)\lib\obj;$(BCB)\lib;$(RELEASELIBPATH) -aa -Tpe -s -Gn -v
+PFLAGS = -U..\;..;$(BCB)\lib\obj;$(BCB)\lib;$(RELEASELIBPATH) \
+  -I..\;..;$(BCB)\include;$(BCB)\include\vcl -DHAVE_CONFIG_H -$YD -$W -$O- -v \
+  -JPHNE -M
+RFLAGS = -i..\;..;$(BCB)\include;$(BCB)\include\vcl -DHAVE_CONFIG_H
+AFLAGS = /i..\ /i$(BCB)\include /i$(BCB)\include\vcl /dHAVE_CONFIG_H /mx /w2 /zi
+LFLAGS = -L..\;..;$(BCB)\lib\obj;$(BCB)\lib;$(RELEASELIBPATH) -aa -Tpe -s -Gn -v
 # ---------------------------------------------------------------------------
 ALLOBJ = c0w32.obj Memmgr.Lib $(PACKAGES) sysinit.obj $(OBJFILES)
 ALLRES = $(RESFILES)
 MajorVer=0
 MinorVer=0
 Release=0
-Build=0
+Build=10
 Debug=1
 PreRelease=1
 Special=0
 [Version Info Keys]
 CompanyName=Daybo Logic
 FileDescription=RTTB browser for Windows
-FileVersion=0.0.0.0
+FileVersion=0.0.0.10
 InternalName=winrttb
 LegalCopyright=Copyright (c) 2000-2012, David Duncan Ross Palmer, Daybo Logic
 LegalTrademarks=
 ProductVersion=0.0.0.0
 Comments=Daybo Logic Run-Time TarBall Library And Tools
 
+[HistoryLists\hlIncludePath]
+Count=1
+Item0=..\;$(BCB)\include;$(BCB)\include\vcl
+
+[HistoryLists\hlLibraryPath]
+Count=1
+Item0=..\;$(BCB)\lib\obj;$(BCB)\lib
+
+[HistoryLists\hlDebugSourcePath]
+Count=1
+Item0=$(BCB)\source\vcl
+
+[HistoryLists\hlConditionals]
+Count=1
+Item0=HAVE_CONFIG_H
+
 [Debugging]
 DebugSourceDirs=$(BCB)\source\vcl
 

File src/winrttb.cpp

 USERES("winrttb.res");
 USEFORM("MainBrowseUnit.cpp", MainBrowse);
 USEUNIT("..\rttbcap.cpp");
+USELIB("..\rttbproj.lib");
 //---------------------------------------------------------------------------
 WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
 {

File src/winrttb.res

Binary file modified.