function AddConfig(proj, strProjectName) { try { var config = proj.Object.Configurations('Debug'); //THIS CAUSES A CRASH config.AddPropertySheet( 'C:\default.props'); var CLTool = config.Tools('VCCLCompilerTool'); // TODO: Add compiler settings CLTool.PreprocessorDefinitions = 'WIN32;_DEBUG;_CONSOLE'; var LinkTool = config.Tools('VCLinkerTool'); // TODO: Add linker settings config = proj.Object.Configurations('Release'); var CLTool = config.Tools('VCCLCompilerTool'); CLTool.PreprocessorDefinitions = 'WIN32;NDEBUG;_CONSOLE'; // TODO: Add compiler settings var LinkTool = config.Tools('VCLinkerTool'); // TODO: Add linker settings } catch(e) { throw e; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)