CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2000
    Posts
    14

    Include or Exclude Modules for Compilation

    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?


  2. #2
    Join Date
    Mar 2000
    Posts
    145

    Re: Include or Exclude Modules for Compilation

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured