<?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[SDI Serialize]]></title><description><![CDATA[<p>Wie kann man der Serialize Funktion beibringen welche dateiendung sie benutzen soll? <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>
]]></description><link>https://www.c-plusplus.net/forum/topic/5648/sdi-serialize</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 02:37:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/5648.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Apr 2003 13:45:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SDI Serialize on Wed, 30 Apr 2003 13:45:00 GMT]]></title><description><![CDATA[<p>Wie kann man der Serialize Funktion beibringen welche dateiendung sie benutzen soll? <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>
]]></description><link>https://www.c-plusplus.net/forum/post/27501</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27501</guid><dc:creator><![CDATA[Kext]]></dc:creator><pubDate>Wed, 30 Apr 2003 13:45:00 GMT</pubDate></item><item><title><![CDATA[Reply to SDI Serialize on Wed, 30 Apr 2003 14:52:00 GMT]]></title><description><![CDATA[<p>gar nicht, da die Funktion nix mit Dateien macht!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27502</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27502</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Wed, 30 Apr 2003 14:52:00 GMT</pubDate></item><item><title><![CDATA[Reply to SDI Serialize on Wed, 30 Apr 2003 14:58:00 GMT]]></title><description><![CDATA[<p>die funktion bekommt doch CArchive ar übergeben. Und das greift doch auf eine Datei zu.<br />
Mit ar.GetFile bekommt man das CFile Objekt auch. Aber da das ja schon erstellt ist, weis ich nicht, wie ich die Dateiendung ändern kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27503</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27503</guid><dc:creator><![CDATA[Kext]]></dc:creator><pubDate>Wed, 30 Apr 2003 14:58:00 GMT</pubDate></item><item><title><![CDATA[Reply to SDI Serialize on Wed, 30 Apr 2003 15:17:00 GMT]]></title><description><![CDATA[<p>&quot;Mein Auto ist ein BMW, wie bekomm ich daraus einen Mercedes?&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27504</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27504</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Wed, 30 Apr 2003 15:17:00 GMT</pubDate></item><item><title><![CDATA[Reply to SDI Serialize on Wed, 30 Apr 2003 16:15:00 GMT]]></title><description><![CDATA[<p>Hallo.</p>
<p>Also ich verwende die Serialize-Methode meiner Klasse immer so:</p>
<pre><code class="language-cpp">void CYourDlg::Speichern()
{
   CFile* file = new CFile;
   file-&gt;Open(&quot;C:\Neu.txt&quot;, CFile::modeCreate | CFile::modeWrite);
   CArchive ar(file, CArchive::store);

   CMyClass* p = new CMyClass;

   //p mit Werten füllen oder was auch immer...

   p-&gt;Serialize(ar);

   ar.close;
   file-&gt;Close(); //weiß net genau, ob das noch sein muss / kann

   delete file;
   delete p;
}
</code></pre>
<p>MfG<br />
Happosai</p>
<p>[edit: [/cpp] vergessen, ich will endlich den Vorschau-Button! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> ]</p>
<p>[ Dieser Beitrag wurde am 30.04.2003 um 18:16 Uhr von <strong>Happosai</strong> editiert. ]</p>
<p>[ Dieser Beitrag wurde am 30.04.2003 um 18:17 Uhr von <strong>Happosai</strong> editiert. ]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27505</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27505</guid><dc:creator><![CDATA[Sanji]]></dc:creator><pubDate>Wed, 30 Apr 2003 16:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to SDI Serialize on Wed, 30 Apr 2003 17:21:00 GMT]]></title><description><![CDATA[<p>@Happosai<br />
du erstellst dir also ein neues CFile objekt. Ich dachte nur, daß man auf das von der sdi bereitgestellte einfluss nehmen kann.</p>
<p>@renescherzkeks</p>
<pre><code class="language-cpp">BOOL BMWKaeuferSuchen(UINT VBPreis)
{
  if(KaeuferGefunden())
    BMWVerkaufen(NeuesAuto);
}
void BMWVerkaufen(CString NeuesAuto)
{
  if(MercedesGefunden(UINT MaxPreis))
  UeberGebeBMW();
  KaufeMercedes();
}
</code></pre>
<p>[ Dieser Beitrag wurde am 30.04.2003 um 19:22 Uhr von <strong>Kext</strong> editiert. ]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27506</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27506</guid><dc:creator><![CDATA[Kext]]></dc:creator><pubDate>Wed, 30 Apr 2003 17:21:00 GMT</pubDate></item><item><title><![CDATA[Reply to SDI Serialize on Wed, 30 Apr 2003 19:15:00 GMT]]></title><description><![CDATA[<p>Rene hat das hier keineswegs als scherz gemeint.</p>
<p>Serialize bekommt ein fertig erstelltes CArchive. Das hat ein fertig erstelltes CFile. Du musst wenn überhaupt einfluss nehmen bevor das CArchive erstellt wurde.</p>
<p>Der vergleich mit den Autos mag daher etwas abstrakt, aber treffend sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27507</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27507</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Wed, 30 Apr 2003 19:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to SDI Serialize on Wed, 30 Apr 2003 19:24:00 GMT]]></title><description><![CDATA[<p>Wohl gemerkt, ich proggte bis jetzt immer OHNE Doc/View! Also hab ich's mit der Implementierung des oben gezeigten Codes etwas leichter, da ich mich nicht auf die Trennung Daten / Anzeige konzentrieren muss.<br />
Diese Info hat jetzt zwar keinen wirklichen Bezug zum Thema, aber wenn ich ganz fest die Daumen drücke, merkt's vielleicht keiner :p</p>
<p>MfG<br />
Happosai</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27508</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27508</guid><dc:creator><![CDATA[Sanji]]></dc:creator><pubDate>Wed, 30 Apr 2003 19:24:00 GMT</pubDate></item><item><title><![CDATA[Reply to SDI Serialize on Wed, 30 Apr 2003 22:40:00 GMT]]></title><description><![CDATA[<blockquote>
<p>Serialize bekommt ein fertig erstelltes CArchive. Das hat ein fertig erstelltes CFile. Du musst wenn überhaupt einfluss nehmen bevor das CArchive erstellt wurde.</p>
<p>Der vergleich mit den Autos mag daher etwas abstrakt, aber treffend sein.</p>
</blockquote>
<p>ich wollt doch nur wissen ob es irgendwie geht. das heist, ob und wie ich vorher einfluss nehmen kann.</p>
<p>Der Autovergleich ist total abstrakt und absolut unpassend. Und wenn man jemand etwas erklären möchte und dazu Moderator in einem Forum ist, sollte man vielleicht auch versuchen, eine gewisse Ernsthaftigkeit und Seriösität an den Tag zu legen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27509</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27509</guid><dc:creator><![CDATA[Kext]]></dc:creator><pubDate>Wed, 30 Apr 2003 22:40:00 GMT</pubDate></item><item><title><![CDATA[Reply to SDI Serialize on Wed, 30 Apr 2003 23:56:00 GMT]]></title><description><![CDATA[<p>Hm, ich hab ne weile gesucht und hab nichts gefunden, wie man darauf einfluss nehmen könnte. Aber interessieren würde mich das auch.</p>
<p>Ich denke in die richtung des Dateidialoges der Aufgerufen wird. Dort wird ja der Name vom Benutzer erfragt. Schau mal ob Du da was in der richtung findest, wann ja sag bescheid <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /> (Machs umgekehrt auch so <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    />))</p>
<p>Und zu den Beispiel von Rene:<br />
Je mehr erfahrung man mit sich bringt, um so abstrakter werden manchmal die Beispiele. Nicht übeln nehmen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
<p>[edit].... mal wieder die Smilies...[/edit]</p>
<p>[ Dieser Beitrag wurde am 01.05.2003 um 01:56 Uhr von <strong>Knuddlbaer</strong> editiert. ]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27510</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27510</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Wed, 30 Apr 2003 23:56:00 GMT</pubDate></item><item><title><![CDATA[Reply to SDI Serialize on Thu, 01 May 2003 14:10:00 GMT]]></title><description><![CDATA[<p>Hallo.</p>
<p>Rein technisch wäre es in einem SDI-Projekt mit Doc/View doch möglich, die OnSaveDocument()-Methode (bzw. die OnLoadDocument-Methode) der Dokument-Klasse zu überschreiben und nichtden Code der Basisklasse aufzurufen, oder täusche ich mich da? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<pre><code class="language-cpp">BOOL CSDIDoc::OnSaveDocument(LPCTSTR lpszPathName) 
{
   // TODO: Speziellen Code hier einfügen und/oder Basisklasse aufrufen

   // return CDocument::OnSaveDocument(lpszPathName);

   // hier den Code aus dem obigen Beispiel meinerseits einügen
}
</code></pre>
<p>MfG<br />
Happosai</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27511</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27511</guid><dc:creator><![CDATA[Sanji]]></dc:creator><pubDate>Thu, 01 May 2003 14:10:00 GMT</pubDate></item><item><title><![CDATA[Reply to SDI Serialize on Thu, 01 May 2003 15:12:00 GMT]]></title><description><![CDATA[<blockquote>
<p>Original erstellt von Kext:<br />
<strong>Wie kann man der Serialize Funktion beibringen welche dateiendung sie benutzen soll? <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="😕"
    /></strong></p>
</blockquote>
<p>Ganz vergessen nachzufragen:</p>
<p>Willst Du das nur einmal in Deinem Projekt ändern, oder immer wieder wärend der Laufzeit ?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27512</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27512</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Thu, 01 May 2003 15:12:00 GMT</pubDate></item><item><title><![CDATA[Reply to SDI Serialize on Sat, 03 May 2003 17:12:00 GMT]]></title><description><![CDATA[<p>@Happosai: hmm, mal ausprobieren. hört sich gut an.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/184">@Knuddlbaer</a>: die anwendung soll nur ein dateityp kennen, und somit laden und speichern können. er muss also nicht zur laufzeit geändert werden.</p>
<p>gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27513</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27513</guid><dc:creator><![CDATA[Kext]]></dc:creator><pubDate>Sat, 03 May 2003 17:12:00 GMT</pubDate></item><item><title><![CDATA[Reply to SDI Serialize on Mon, 11 Aug 2003 13:07:33 GMT]]></title><description><![CDATA[<p>Endlich was gefunden dazu,</p>
<p>wens interresiert:</p>
<p><a href="http://www.codeguru.com/doc_view/RemovingFilters.shtml" rel="nofollow">http://www.codeguru.com/doc_view/RemovingFilters.shtml</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/329351</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/329351</guid><dc:creator><![CDATA[Kext]]></dc:creator><pubDate>Mon, 11 Aug 2003 13:07:33 GMT</pubDate></item><item><title><![CDATA[Reply to SDI Serialize on Tue, 12 Aug 2003 09:23:12 GMT]]></title><description><![CDATA[<p>Zitat MSDN</p>
<p>&quot;DIBLOOK: Illustrates the Use of DIBs and Color Palettes<br />
All Visual Studio 6.0 samples are contained in a single executable, which is available for download.</p>
<p>The DIBLOOK sample illustrates the use of device-independent bitmaps (DIBs) and the closely related use of color palettes.</p>
<p><strong>DIBLOOK also illustrates a document that has an externally defined file format (in this case, the DIB file format). This is in contrast to an internally defined file format, which is otherwise implied when the framework automatically calls the document's Serialize function to store the contents of the document on disk.</strong> DIBLOOK further illustrates use of the Clipboard, CFile, and scroll views..........&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/329916</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/329916</guid><dc:creator><![CDATA[Kext&#x27;]]></dc:creator><pubDate>Tue, 12 Aug 2003 09:23:12 GMT</pubDate></item></channel></rss>