www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <20061219210916.isuasdydhw4cwcc4@webmail.unizar.es> |
Date: | Tue, 19 Dec 2006 21:09:16 +0100 |
From: | "Francisco J. Royo Santas" <497328 AT unizar DOT es> |
To: | cygwin AT cygwin DOT com |
Subject: | "cout" and "cerr" won't work after cygwin1.dll init from VC++ |
MIME-Version: | 1.0 |
User-Agent: | Internet Messaging Program (IMP) H3 (4.0.2) |
X-Mail-Scanned: | Criba 2.0 + Clamd & Bogofilter |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hello I have a VC++ program that uses a Cygwin-compiled DLL. I can init cygwin1.dll but, after doing this, cout and cerr stop working. cout << "Message" << endl does not appear on the screen. I do not know exactly what happens here. The program is: cout << "Before" << endl; // Appears HMODULE cygwinDll = LoadLibrary("cygwin1.dll"); void (*init)() = (void (__cdecl *)(void)) GetProcAddress(cygwinDll, "cygwin_dll_init"); init(); cout << "After" << endl; // Does nor appear What is going on here?? What do I have to do to have cout and cerr back normally?? Thanks and G'bye Francisco J. Royo Santas -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |