Export (0) Print
Expand All
Expand Minimize

DefaultCharType Property

Visual Studio .NET 2003

Specifies the default MIDL char type. Exposes the functionality of the /char MIDL option.

[Visual Basic .NET]
Public Property DefaultCharType() As midlCharOption
[Visual Basic 6]
Property Get DefaultCharType() As midlCharOption
Property Let DefaultCharType( _
   ByVal NewValue As midlCharOption _
) 
[C++]
HRESULT __stdcall get_DefaultCharType(
   /* [out, retval] */ midlCharOption* retVal
);
HRESULT __stdcall put_DefaultCharType(
   /* [in] */ midlCharOption NewValue
);
[C#]
public midlCharOption DefaultCharType {get; set;}
[JScript .NET]
public function get DefaultCharType() : midlCharOption
public function set DefaultCharType(
   NewValue : midlCharOption
)

Remarks

Use the midlCharOption enumeration to change the value of this property.

Example

The following sample code modifies the DefaultCharType 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 VCMidlTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCMIDLTool")
        tool.DefaultCharType = midlCharOption.midlCharSigned
    End Sub
End Module

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

See Also

Applies To: VCMidlTool Object

Show:
© 2014 Microsoft