First,
I have four Visual Basic .Net projects in my Visual Studio solution. Each
project modifies and/or uses information in four random access files in
different ways. Hence a large portion of code is shared between two or more
of these four projects.
This leads to difficulties, since modifications to code in one project must
be mirrored in the other projects to prevent bugs & errors. For example, I
eventually traced one nasty bug that caused a display error in a ListBox to
my failure to modify a <VBFixedString(15)> that I'd increased to 17 in the
other projects.
Can I solve this by adding the same module to each of my four projects and
declaring variables common to all of them only in there?
(Would this also allow me to have routines common to all projects?)
Second,
I reference those four files using the following constants:
Const PointsFile = "C:\Bike Racer\Shared Data\Points.dat"
Const SegmentsFile = "C:\Bike Racer\Shared Data\Segments.dat"
Const RoadsFile = "C:\Bike Racer\Shared Data\Roads.dat"
Const ConfigFile = "C:\Bike Racer\Shared Data\Config.dat"
This, of course, means that the programs must always be installed to C:
\Bike Racer to run...
How would I set them equal to
"[Directory Application is Installed In] & "\Shared Data\[?????].dat"
Thanks in advance for any assistance,
The Confessor