How to use the "msdev.exe" command-line options to build with BoundsChecker for Visual C ?
Currently, you can use a Visual Studio 6 macro to automate command-line builds using msdev.exe. Use the following steps to prepare this:
Sub NMBCBuild() 'DESCRIPTION: Instruments your project with BoundsChecker. ExecuteCommand "BCBuild" End Sub
Sub Application_BuildFinish(nNumErrors, nNumWarnings) 'DESCRIPTION: Triggered when Visual Studio finishes any build. 'Exit Visual Studio. Application.Quit End Sub
Now, in order to build a Project's Active Configuration from the command-line, you would use the following syntax:
msdev.exe foo.dsw /ex NMBCBuild
If every step above was followed, this would perform a BoundsChecker build of the project and then exit Visual C . Other automation code can be used for changing the Active Configuration, or saving the build output text. For more information on "msdev.exe" command-line builds or Visual Studio macros refer to Microsoft's Visual C User's Guide.
This technique can be used with BoundsChecker 6.0 and later.