Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

BasicRuntimeChecks Property

Visual Studio .NET 2003

Performs full run-time error checks (/RTC1), checks stack frame validity at run time (/RTCs), and checks for uninitialized variables at run time (/RTCu).

[Visual Basic .NET]
Public Property BasicRuntimeChecks() As basicRuntimeCheckOption
[Visual Basic 6]
Property Get BasicRuntimeChecks() As basicRuntimeCheckOption
Property Let BasicRuntimeChecks( _
   ByVal NewValue As basicRuntimeCheckOption _
HRESULT __stdcall get_BasicRuntimeChecks(
   /* [out, retval] */ basicRuntimeCheckOption* retVal
HRESULT __stdcall put_BasicRuntimeChecks(
   /* [in] */ basicRuntimeCheckOption NewValue
public basicRuntimeCheckOption BasicRuntimeChecks {get; set;}
[JScript .NET]
public function get BasicRuntimeChecks() : basicRuntimeCheckOption
public function set BasicRuntimeChecks(
   NewValue : basicRuntimeCheckOption


The following sample code modifies the BasicRuntimeChecks property in the development environment:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCCLCompilerTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCCLCompilerTool")
        tool.BasicRuntimeChecks = _
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCCLCompilerTool Object

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.