<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Initialisierung]]></title><description><![CDATA[<p>Hallo,</p>
<p>habe eine x.h und eine x.cpp Datei.<br />
Möchte folgendes Initialisieren:</p>
<p>xmlSAXHandler emptySAXHandlerStruct = {<br />
NULL, /* internalSubset <em>/<br />
NULL, /</em> isStandalone <em>/<br />
NULL, /</em> hasInternalSubset <em>/<br />
NULL, /</em> hasExternalSubset <em>/<br />
NULL, /</em> resolveEntity <em>/<br />
NULL, /</em> getEntity <em>/<br />
NULL, /</em> entityDecl <em>/<br />
NULL, /</em> notationDecl <em>/<br />
NULL, /</em> attributeDecl <em>/<br />
NULL, /</em> elementDecl <em>/<br />
NULL, /</em> unparsedEntityDecl <em>/<br />
NULL, /</em> setDocumentLocator <em>/<br />
NULL, /</em> startDocument <em>/<br />
NULL, /</em> endDocument <em>/<br />
NULL, /</em> startElement <em>/<br />
NULL, /</em> endElement <em>/<br />
NULL, /</em> reference <em>/<br />
NULL, /</em> characters <em>/<br />
NULL, /</em> ignorableWhitespace <em>/<br />
NULL, /</em> processingInstruction <em>/<br />
NULL, /</em> comment <em>/<br />
NULL, /</em> xmlParserWarning <em>/<br />
NULL, /</em> xmlParserError <em>/<br />
NULL, /</em> xmlParserError <em>/<br />
NULL, /</em> getParameterEntity <em>/<br />
NULL, /</em> cdataBlock; <em>/<br />
NULL, /</em> externalSubset; <em>/<br />
1,<br />
NULL,<br />
NULL, /</em> startElementNs <em>/<br />
NULL, /</em> endElementNs <em>/<br />
NULL /</em> xmlStructuredErrorFunc */<br />
};</p>
<p>Wo initialisiere ich das? im header file oder in der cpp? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Danke!<br />
lg,<br />
shed</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/175420/initialisierung</link><generator>RSS for Node</generator><lastBuildDate>Sat, 19 Sep 2026 02:15:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/175420.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Mar 2007 11:35:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Initialisierung on Sat, 10 Mar 2007 11:35:25 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>habe eine x.h und eine x.cpp Datei.<br />
Möchte folgendes Initialisieren:</p>
<p>xmlSAXHandler emptySAXHandlerStruct = {<br />
NULL, /* internalSubset <em>/<br />
NULL, /</em> isStandalone <em>/<br />
NULL, /</em> hasInternalSubset <em>/<br />
NULL, /</em> hasExternalSubset <em>/<br />
NULL, /</em> resolveEntity <em>/<br />
NULL, /</em> getEntity <em>/<br />
NULL, /</em> entityDecl <em>/<br />
NULL, /</em> notationDecl <em>/<br />
NULL, /</em> attributeDecl <em>/<br />
NULL, /</em> elementDecl <em>/<br />
NULL, /</em> unparsedEntityDecl <em>/<br />
NULL, /</em> setDocumentLocator <em>/<br />
NULL, /</em> startDocument <em>/<br />
NULL, /</em> endDocument <em>/<br />
NULL, /</em> startElement <em>/<br />
NULL, /</em> endElement <em>/<br />
NULL, /</em> reference <em>/<br />
NULL, /</em> characters <em>/<br />
NULL, /</em> ignorableWhitespace <em>/<br />
NULL, /</em> processingInstruction <em>/<br />
NULL, /</em> comment <em>/<br />
NULL, /</em> xmlParserWarning <em>/<br />
NULL, /</em> xmlParserError <em>/<br />
NULL, /</em> xmlParserError <em>/<br />
NULL, /</em> getParameterEntity <em>/<br />
NULL, /</em> cdataBlock; <em>/<br />
NULL, /</em> externalSubset; <em>/<br />
1,<br />
NULL,<br />
NULL, /</em> startElementNs <em>/<br />
NULL, /</em> endElementNs <em>/<br />
NULL /</em> xmlStructuredErrorFunc */<br />
};</p>
<p>Wo initialisiere ich das? im header file oder in der cpp? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Danke!<br />
lg,<br />
shed</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1242771</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1242771</guid><dc:creator><![CDATA[shed]]></dc:creator><pubDate>Sat, 10 Mar 2007 11:35:25 GMT</pubDate></item><item><title><![CDATA[Reply to Initialisierung on Sat, 10 Mar 2007 11:42:58 GMT]]></title><description><![CDATA[<p>Ist das eine globale Variable? Möchtest du sie im Header extern deklarieren?<br />
Wenn global aber ohne extern, dann machs direkt im Header. Andernfalls in der .cpp</p>
<p>Wenn es in einer Klasse steht, dann im Konstruktor.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1242775</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1242775</guid><dc:creator><![CDATA[lolz]]></dc:creator><pubDate>Sat, 10 Mar 2007 11:42:58 GMT</pubDate></item><item><title><![CDATA[Reply to Initialisierung on Sat, 10 Mar 2007 12:07:24 GMT]]></title><description><![CDATA[<p>Wenn ich das im Konstruktor machen will bekomm ich fehler:</p>
<p>(x.h)</p>
<p>class x<br />
{<br />
private:<br />
xmlSAXHandler emptySAXHandlerStruct;</p>
<p>public:<br />
x() {<br />
this-&gt;emptySAXHandlerStruct = {NULL};<br />
}</p>
<p>};</p>
<p>Soll keine globale Variable sein, sonder zu der Klasse gehören.<br />
Danke!<br />
mfg,<br />
shed</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1242785</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1242785</guid><dc:creator><![CDATA[shed]]></dc:creator><pubDate>Sat, 10 Mar 2007 12:07:24 GMT</pubDate></item><item><title><![CDATA[Reply to Initialisierung on Sat, 10 Mar 2007 12:27:04 GMT]]></title><description><![CDATA[<p>Ich glaube</p>
<pre><code>{
ZeroMemory(this-&gt;emptySAXHandlerStruct, siezof(xmlSAXHandler));
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1242795</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1242795</guid><dc:creator><![CDATA[Pearly]]></dc:creator><pubDate>Sat, 10 Mar 2007 12:27:04 GMT</pubDate></item><item><title><![CDATA[Reply to Initialisierung on Sat, 10 Mar 2007 12:28:33 GMT]]></title><description><![CDATA[<p>Das war nur als beispiel gedacht...also ich schreibe mehrere Werte:</p>
<p>this-&gt;emptySAXHandlerStruct = {NULL, NULL, NULL, NULL, NULL, NULL,...};</p>
<p>kann ich das dann trotzdem machen bzw. ist das dann das gleiche?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1242797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1242797</guid><dc:creator><![CDATA[shed]]></dc:creator><pubDate>Sat, 10 Mar 2007 12:28:33 GMT</pubDate></item><item><title><![CDATA[Reply to Initialisierung on Sat, 10 Mar 2007 12:34:31 GMT]]></title><description><![CDATA[<p>bzw. genau gesagt soll das drinnen stehen, also kann ich es gar nicht mit ZeroMemory machen:</p>
<p>this-&gt;emptySAXHandlerStruct = {NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 6...};</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1242804</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1242804</guid><dc:creator><![CDATA[shed]]></dc:creator><pubDate>Sat, 10 Mar 2007 12:34:31 GMT</pubDate></item><item><title><![CDATA[Reply to Initialisierung on Sat, 10 Mar 2007 16:27:14 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">lass x
{
private:
xmlSAXHandler emptySAXHandlerStruct;

public:
x() : emptySAXHandlerStruct(0){
//und hier setzt du die einzelnen Werte die nicht 0 sind
//und die Zuweisung mit der geschweiften Klammer funktioniert nur wenn du direkt 
//initialisiert bei der Definition
//Aber im Konstruktor ist die Variable längst erzeugt..
//
//Du solltest vielleicht mal ein Grundlagenbuch über C++ lesen
}

};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1242955</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1242955</guid><dc:creator><![CDATA[lolz]]></dc:creator><pubDate>Sat, 10 Mar 2007 16:27:14 GMT</pubDate></item></channel></rss>