<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>FILE * from std::ofstream? - C++ - tribe.net</title>
    <link>http://cpp.tribe.net/thread/9ede4cbe-2a04-4522-8880-6f381ec03e47?format=rss</link>
    <description>Tribe.net. Local Connections</description>
    <item>
      <title>Re: FILE * from std::ofstream?</title>
      <link>http://CPP.tribe.net/thread/9ede4cbe-2a04-4522-8880-6f381ec03e47#9c86b706-7d24-446e-9834-14688fc70d40</link>
      <description>Good to hear John :)  Sounds like you made a better design decision in the end :)</description>
      <pubDate>Thu, 15 Jun 2006 05:55:23 GMT</pubDate>
      <guid isPermaLink="false">http://CPP.tribe.net/thread/9ede4cbe-2a04-4522-8880-6f381ec03e47#9c86b706-7d24-446e-9834-14688fc70d40</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2006-06-15T05:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: FILE * from std::ofstream?</title>
      <link>http://CPP.tribe.net/thread/9ede4cbe-2a04-4522-8880-6f381ec03e47#1eeb4718-0340-4441-ad22-4960e6fe6fc1</link>
      <description>Jason,&#xD;
&#xD;
Alas, I decided to just expose a more abstract interface to the code calling me, and I found a way to get around the (kinda nasty) FILE *.  The iostream stuff just seems safer, anyway ...&#xD;
&#xD;
Regards,&#xD;
&#xD;
John&#xD;
&#xD;
Falling You - exploring the beauty of voice and sound&#xD;
http://www.fallingyou.com</description>
      <pubDate>Thu, 15 Jun 2006 05:00:16 GMT</pubDate>
      <guid isPermaLink="false">http://CPP.tribe.net/thread/9ede4cbe-2a04-4522-8880-6f381ec03e47#1eeb4718-0340-4441-ad22-4960e6fe6fc1</guid>
      <dc:creator>John Michael</dc:creator>
      <dc:date>2006-06-15T05:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: FILE * from std::ofstream?</title>
      <link>http://CPP.tribe.net/thread/9ede4cbe-2a04-4522-8880-6f381ec03e47#cbbdf6bc-4ce2-46ed-a7d7-1e45c7d9ea0f</link>
      <description>FILE is a straight C type for OS-specific file info.  It is defined in stdio.h.&#xD;
&#xD;
see http://msdn.microsoft.com/library/en-us/vccore98/HTML/_crt_fgetc.2c_.fgetwc.2c_._fgetchar.2c_._fgetwchar.asp?frame=true &#xD;
&#xD;
for an example of using fopen() to obtain a pointer to the FILE info.  I dont know much more about it though... good luck!</description>
      <pubDate>Thu, 15 Jun 2006 04:53:08 GMT</pubDate>
      <guid isPermaLink="false">http://CPP.tribe.net/thread/9ede4cbe-2a04-4522-8880-6f381ec03e47#cbbdf6bc-4ce2-46ed-a7d7-1e45c7d9ea0f</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2006-06-15T04:53:08Z</dc:date>
    </item>
    <item>
      <title>FILE * from std::ofstream?</title>
      <link>http://CPP.tribe.net/thread/9ede4cbe-2a04-4522-8880-6f381ec03e47#9f91e8b6-4eb9-4c2a-8a2e-ff8d218cbff0</link>
      <description>Hello, all ...&#xD;
&#xD;
I need to interface a library that expects to communicate through a FILE * to my code written using ofstream.  In these endeavors, I would like to just have my ofstream return a FILE * that this library can use, but I don't see how I can do that.  The ofstream.rdbuf() returns a basic_filebuf, but there seems to be no way of getting a FILE * from it in a cross platform way (this code has to work on Mac OSX, using gcc, as well as Windows, using the MSVC.NET compiler).&#xD;
&#xD;
Am I doomed to a C-style interface to my lower level file objects, just because this library expects a FILE *?  I'm sure i'm not the only one who has run into this ...&#xD;
&#xD;
Regards,&#xD;
&#xD;
John&#xD;
&#xD;
Falling You - exploring the beauty of voice and sound&#xD;
http://www.fallingyou.com</description>
      <pubDate>Mon, 12 Jun 2006 05:58:56 GMT</pubDate>
      <guid isPermaLink="false">http://CPP.tribe.net/thread/9ede4cbe-2a04-4522-8880-6f381ec03e47#9f91e8b6-4eb9-4c2a-8a2e-ff8d218cbff0</guid>
      <dc:creator>John Michael</dc:creator>
      <dc:date>2006-06-12T05:58:56Z</dc:date>
    </item>
  </channel>
</rss>



