VCWizCtlClass.CppParseTypeString(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parses a string containing the C++ variable declaration into its parts (type, name, and initial value).
public:
virtual System::Object ^ CppParseTypeString(System::String ^ bstrTypeDecl) = Microsoft::VisualStudio::VsWizard::IVCWizCtlUI::CppParseTypeString;
public:
virtual Platform::Object ^ CppParseTypeString(Platform::String ^ bstrTypeDecl) = Microsoft::VisualStudio::VsWizard::IVCWizCtlUI::CppParseTypeString;
virtual winrt::Windows::Foundation::IInspectable CppParseTypeString(std::wstring const & bstrTypeDecl);
[System.Runtime.InteropServices.DispId(1610743870)]
public virtual object CppParseTypeString (string bstrTypeDecl);
[<System.Runtime.InteropServices.DispId(1610743870)>]
abstract member CppParseTypeString : string -> obj
override this.CppParseTypeString : string -> obj
Public Overridable Function CppParseTypeString (bstrTypeDecl As String) As Object
Parameters
- bstrTypeDecl
- String
Required. A string containing the C++ variable declaration.
Returns
An object containing the parts of a C++ variable declaration.
Implements
- Attributes
Examples
// From the ATL Add Event wizard
function ExtractParamNames()
{
var strParamNames = "";
var Params = document.all.tags("SELECT").item("PARAMETERS");
for(var index=0; index < Params.options.length; index++)
{
var strParam = Params.options[index].text;
var NamePos, NameLength;
var NameLengthPos = new VBArray(window.external.CppParseTypeString(strParam));
NamePos = NameLengthPos.getItem(0);
NameLength = NameLengthPos.getItem(1);
if(index!=0)
strParamNames += ","
strParamNames += strParam.substr(NamePos, NameLength);
}
return strParamNames;
}