Sharing personal legacy VP7 packages with VP8
Posted: 8 Feb 2018 20:06
A question for Thomas:
I have a code library (about 50 packages and 200 .pro files) that I use in VP7.5. I would like to use it in both VP7.5 & VP8 projects and be able to modify those from either VP IDE.
My puzzle is that the .pack and .ph files in this libray have #include statements that point to files in the VP7.5 pfc subdirectories (e.g., #include @"pfc\varM\varM.ph") which are not in equivalent VP8 pfc subdirectories, so project compilation in VP8 gives messages about deleting references to the VP7.5 files in my library packages.
Of course, it is logical to follow the compiler's suggestion ... if I weren't hoping to use the same library in existing VP7.5 projects.
(1) Must I have make a copy of my library for use in VP8?
-- or --
(2) Can I use the compiler_version constant with #if #then #else statments
in my library's .pack and .ph files to share the library code between VP version?
Then again, a "possible" option (2) of sharing the library may not be an optimal choice.
Any thoughts on this migration question?
I have a code library (about 50 packages and 200 .pro files) that I use in VP7.5. I would like to use it in both VP7.5 & VP8 projects and be able to modify those from either VP IDE.
My puzzle is that the .pack and .ph files in this libray have #include statements that point to files in the VP7.5 pfc subdirectories (e.g., #include @"pfc\varM\varM.ph") which are not in equivalent VP8 pfc subdirectories, so project compilation in VP8 gives messages about deleting references to the VP7.5 files in my library packages.
Of course, it is logical to follow the compiler's suggestion ... if I weren't hoping to use the same library in existing VP7.5 projects.
(1) Must I have make a copy of my library for use in VP8?
-- or --
(2) Can I use the compiler_version constant with #if #then #else statments
in my library's .pack and .ph files to share the library code between VP version?
Then again, a "possible" option (2) of sharing the library may not be an optimal choice.
Any thoughts on this migration question?