XT Knowledge Base
Hauptseite | Über | Hilfe | FAQ | Spezialseiten | Anmelden

Druckversion | Impressum | Datenschutz | Aktuelle Version

KnowHowLangs

(Unterschied zwischen Versionen)

(Snippets)
(Snippets)
Zeile 12: Zeile 12:
=== Foren ===
=== Foren ===
=== Snippets ===
=== Snippets ===
-
<source lang="cpp">
+
<pre class='console'>
CString CXmlNodeList::GetAttribute( int iItem, LPCTSTR strAttributeName )
CString CXmlNodeList::GetAttribute( int iItem, LPCTSTR strAttributeName )
{
{
Zeile 22: Zeile 22:
return CString( _T("") );
return CString( _T("") );
}
}
-
</source>
+
</pre>
== PHP ==
== PHP ==

Version vom 09:05, 14. Sep. 2009

Inhaltsverzeichnis

C++

Referenzen

Tutorials

FAQs

Foren

Snippets

CString CXmlNodeList::GetAttribute( int iItem, LPCTSTR strAttributeName )
{	
	CXmlElementPtr pElement = m_pNodeList->Getitem( iItem );
	VARIANT varValue = pElement->getAttribute( _bstr_t( strAttributeName ) );
	if( varValue.bstrVal != NULL )
		return CString( varValue );
	else 
		return CString( _T("") );
}

PHP

Referenzen

Tutorials

FAQs

Foren