Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <19991212232503.29952.qmail@nwcst291.netaddress.usa.net>
Date: 12 Dec 99 18:25:03 EST
From: Alex Bertram <alexkb@usa.net>
To: cygwin@sourceware.cygnus.com
Subject: fstream calls in cygwin dll
X-Mailer: USANET web-mailer (M3.4.0.33)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id TAA07895


 Thanks to Mummit Khan for both his response and voluminous docs! 

I've been successfull in calling my cygwin dll based upon gnu plotutils by
visual basic 6.0, and i'm that much closer to convincing my company that
integrating unix apps/library/os's in our microsoft shop is a *GOOD* thing.

however, the dll brings down the app following any call to cout, cerr, cin or
my iofstream objects. I can go ahead and use fopen, fread and the like, but is
this a problem that's been solved already?

**CODE SNIPPET **
-----------------

      //this works \/       

        FILE *testh = fopen("/aviscos2.log", "w");
        fprintf(testh, "testing... i don't think the c++ i/o works.\n");
        fprintf(testh, "got these params (%s, %s, %s)\n", infile, outfile,
papersize);
        fclose(testh);

       //this does not!
        // Trace::logfile << "just getting started." << endl;

//        Trace t("convert_ps");

        /* Initialize */

        HPEnv env;

        /* Open Files */

        ifstream hpglfile(infile);
        FILE * psfile = fopen(outfile, "w");
-------
*END CODE SNIPPET***


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

