Click to See Complete Forum and Search --> : Include or Exclude Modules for Compilation


Nikki
August 15th, 2001, 09:51 AM
Hi,

I have a VB Project created with various Modules. The same project needs to recreated again and again (for different companies) with slight modifications to some modules. Can I create one single project with different modules, so that I could apply the changes, fix the bugs in just one project than so many? If I do that, Will I be able to compile the project depending on a global variable which will define which modules should be included/excluded in generating the executable?

CodeBlue
August 15th, 2001, 10:18 PM
You could use "conditional compilation". See the VB help topic about how this works. Another way to include/exclude entire modules is to create multiple PROJECTS. A project is nothing more than a bunch of file pointers to various forms and modules. Lets say you have PROJECT1 and PROJECT2; they could both include the same MODULE1. When you make a change to MODULE1 in PROJECT1, you're also changing it for PROJECT2. Some modules could be the same across all projects and some could be different.