Building from Microsoft Visual Studio
Below are instructions for setting up a project in Microsoft Visual Studio to build and run the examples. You can also use this for guidance in setting up a project for your own application that depends on SourcePro libraries.
1. Open Visual Studio and select File | New | Project.
2. Select Win32 Console Application, give the project a name, and click OK.
The Win32 Application Wizard launches. Click Next.
3. In Application Settings, select the Empty Project option and click Finish.
4. In the Solution Explorer, right-click on Source and select Add | Existing Item.
5. Navigate to and add the source code for the examples you are interested in.
6. Again, in the Solution Explorer, right click on Source and select Add | Existing Item.
7. Navigate to and add the library files the examples depend on.
If you are uncertain what these are, look in the makefiles for the examples you want to build. For example, to build the Essential Tools Module tutorial examples, look in <buildspace>\examples\tools\tutorial\12d\makefile. The REQLIBS entry specifies all required libraries.
8. In the Solution Explorer, right click on the project and choose Properties.
9. Under VC++ Directories, edit the Executable Directories to contain the path to the DLL files.
If the buildspace is located at c:\RogueWave\SourcePro\<ver>-osd, the additional executable path needed is c:\RogueWave\SourcePro\<ver>-osd\lib.
10. Edit the Include Directories to contain the path to the rw directory.
If the buildspace is located at c:\RogueWave\SourcePro\<ver>-osd, the additional include path needed is c:\RogueWave\SourcePro\<ver>-osd.
11. Expand the C/C++ section.
12. Select Preprocessor and edit the Preprocessor Definitions to add _RWCONFIG=12d.
13. Select Precompiled Headers | Precompiled Header and from the dropdown list for this item, select Not Using Precompiled Headers.
14. Click OK.
Your project is now set up to compile and run the examples you have selected.