Running Examples on Visual Studio
To run the Calculator client in windows using any Visual Studio version other than Visual Studio 2013:
| 1. | Open the CPPCalculator solution file in Visual Studio. |
| 2. | Set the configuration to "Release" and Platform as "x64". |
| 3. | Right-click "Calculator", select Properties > Configuration Properties > General > Platform Toolset, and select your version of Visual Studio. Do the same for "CalculatorClient". |
| 4. | Right-click "Calculator", select Properties > Linker > General, and replace "Output File" with the value for your version of Visual Studio. (For example ..\..\target\o\win64\vc12\Calculator.dll) |
| 5. | Right-click "CalculatorClient" select Properties > Linker > General, and replace "Additional Library Directories" with the value for your version of Visual Studio (For example ..\..\..\..\..\cppdriver\lib\vc12\x64;%(AdditionalLibraryDirectories)) |
| 6. | Right-click "CalculatorClient", select Properties > Linker > Input, and replace "Additional Library Directories" with the value for your version of Visual Studio (For example DSDriverVC12.lib;DSUtilVC12.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)) |
| 7. | Modify env.bat for your version of Visual Studio. For example: |
set dsos=win64
set dscompiler=vc12
set dsbridgename=win64-vc12
set devenvpath="%VS120COMNTOOLS%\..\IDE\devenv.exe"
| 8. | Edit driver.properties as needed. |
| 9. | Run the build-and-deploy.bat script. The Grid Library is deployed with the correct calculator.dll file packaged in it. |