<?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[Problem mit filebuf]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe folgenden Code:</p>
<pre><code class="language-cpp">//... 
#include &quot;time.h&quot; 
#include &quot;fstream&quot; 
#include &quot;string&quot; 

using namespace std; 

void Bla::Func1() 
{ 
  ofstream read_out; 

  //... 

  read_out.open(path, ios::out, filebuf::sh_none); 
  read_out &lt;&lt; &quot;Text&quot;; 
  read_out.close(); 
}
</code></pre>
<p>dazu bringt er mir immer zwei Fehlermeldungen:</p>
<p>error C2039: 'sh_none' : Ist kein Element von 'basic_filebuf&lt;char,struct std::char_traits&lt;char&gt; &gt;'<br />
error C2065: 'sh_none' : nichtdeklarierter Bezeichner</p>
<p>Kann mir jemand helfen und sagen, was ich hier vergessen bzw. falsch habe?</p>
<p>Danke im Voraus!!<br />
Gruß Mädle</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/126479/problem-mit-filebuf</link><generator>RSS for Node</generator><lastBuildDate>Mon, 24 Aug 2026 18:53:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/126479.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Nov 2005 13:51:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit filebuf on Tue, 15 Nov 2005 13:51:41 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe folgenden Code:</p>
<pre><code class="language-cpp">//... 
#include &quot;time.h&quot; 
#include &quot;fstream&quot; 
#include &quot;string&quot; 

using namespace std; 

void Bla::Func1() 
{ 
  ofstream read_out; 

  //... 

  read_out.open(path, ios::out, filebuf::sh_none); 
  read_out &lt;&lt; &quot;Text&quot;; 
  read_out.close(); 
}
</code></pre>
<p>dazu bringt er mir immer zwei Fehlermeldungen:</p>
<p>error C2039: 'sh_none' : Ist kein Element von 'basic_filebuf&lt;char,struct std::char_traits&lt;char&gt; &gt;'<br />
error C2065: 'sh_none' : nichtdeklarierter Bezeichner</p>
<p>Kann mir jemand helfen und sagen, was ich hier vergessen bzw. falsch habe?</p>
<p>Danke im Voraus!!<br />
Gruß Mädle</p>
]]></description><link>https://www.c-plusplus.net/forum/post/918497</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/918497</guid><dc:creator><![CDATA[Mädle]]></dc:creator><pubDate>Tue, 15 Nov 2005 13:51:41 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit filebuf on Tue, 15 Nov 2005 18:06:32 GMT]]></title><description><![CDATA[<p>falsch im weitesten sinne ist, dass standard-c++ sh_none nicht kennt.<br />
du willst die datei für exklusiven zugriff öffnen? das geht dann wohl eher über os-spezifische befehle. sorry...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/918529</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/918529</guid><dc:creator><![CDATA[davie]]></dc:creator><pubDate>Tue, 15 Nov 2005 18:06:32 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit filebuf on Tue, 15 Nov 2005 23:39:31 GMT]]></title><description><![CDATA[<blockquote>
<p>das geht dann wohl eher über os-spezifische befehle</p>
</blockquote>
<p>Oder aber mittels der Prästandardstreams aus &lt;ofstream.h&gt;.<br />
Wobei ich in diesem Fall dann doch eher bei den os-spezifischen Funktionen bleiben würde.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/918762</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/918762</guid><dc:creator><![CDATA[HumeSikkins]]></dc:creator><pubDate>Tue, 15 Nov 2005 23:39:31 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit filebuf on Wed, 16 Nov 2005 09:21:59 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Vielen Dank für eure Antworten,<br />
jedoch .. könnt ihr mir sagen, was ihr unter &quot;os-spezifischen Funktionen&quot; meint? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Danke + Gruß<br />
's Mädle</p>
]]></description><link>https://www.c-plusplus.net/forum/post/918895</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/918895</guid><dc:creator><![CDATA[Mädle]]></dc:creator><pubDate>Wed, 16 Nov 2005 09:21:59 GMT</pubDate></item></channel></rss>