delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/12/12/19:26:33

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <19991212232503.29952.qmail@nwcst291.netaddress.usa.net>
Date: 12 Dec 99 18:25:03 EST
From: Alex Bertram <alexkb AT usa DOT net>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: fstream calls in cygwin dll
X-Mailer: USANET web-mailer (M3.4.0.33)
Mime-Version: 1.0
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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019