cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: how to switch off console?

From: Cris D Putnam <cdputnam_at_us.ibm.com>
Date: Wed, 29 Jun 2005 12:57:14 -0400

freopen("NUL", "wt", stdout);
freopen("NUL", "wt", stderr);
work to remove the console but cause curl to not connect same as
FreeConsole();

How can simply turn of the console in curl?

Thank You

Cris D. Putnam

Gisle Vanem <giva_at_bgnett.no>
Sent by: curl-users-bounces_at_cool.haxx.se
06/29/2005 09:49 AM
Please respond to
curl tool talk

To
curl tool talk <curl-users_at_cool.haxx.se>
cc

Subject
Re: how to switch off console?

> How can I stop the console window from
> popping up and still allow curl to make my http connections?

You could adding try:
  freopen("NUL", "wt", stdout);
  freopen("NUL", "wt", stderr);

before using any stdio or libcurl functions.

--gv
Received on 2005-06-29