Skip to content

Commit fb65120

Browse files
committed
cpp-builder: Keep all data files in the project directory
- Output the executable file to the project directory. - Save layout data in `data.dat` in the project directory. - Keep nwind.db in the project directory: resolves the problem with failed database connection in Report Designer. - Upgrade the project to RAD Studio 13. - Remove unnecessary include paths from the project settings.
1 parent 852b5e4 commit fb65120

6 files changed

Lines changed: 52 additions & 29 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ __recovery/
5656
*.ils
5757
*.map
5858
*.tds
59+
# Program Database file that stores debugging symbols
60+
*.pdb
5961

6062
# Precompiled headers
6163
*.pch

CPB/ReportTemplate.cbproj

Lines changed: 47 additions & 24 deletions
Large diffs are not rendered by default.
File renamed without changes.

CPB/uData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#pragma resource "*.dfm"
2424
TDataModule1 *DataModule1;
2525
//---------------------------------------------------------------------------
26-
const String DataFileName = "..\\..\\data.dat";
26+
const String DataFileName = "data.dat";
2727

2828

2929
__fastcall TDataModule1::TDataModule1(TComponent* Owner)

CPB/uData.dfm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -813,12 +813,11 @@ object DataModule1: TDataModule1
813813
Top = 104
814814
object ReportsNWindConnectionString: TdxBackendDatabaseSQLConnection
815815
DisplayName = 'NWindConnectionString'
816-
ConnectionString =
817-
'XpoProvider=SQLite; Data Source=|DataDirectory|\..\..\..\nwind.d' +
818-
'b; Mode=ReadOnly'
816+
ConnectionString = 'XpoProvider=SQLite; Data Source=nwind.db; Mode=ReadOnly'
819817
end
820818
end
821819
object dxSkinController1: TdxSkinController
820+
NativeStyle = False
822821
SkinName = 'WXI'
823822
Left = 392
824823
Top = 104

CPB/uMainForm.dfm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ object MainForm: TMainForm
2525
Width = 377
2626
Height = 25
2727
Caption = 'Design Report'
28-
SpeedButtonOptions.CanBeFocused = False
2928
TabOrder = 1
3029
OnClick = btnDesignClick
3130
end

0 commit comments

Comments
 (0)