delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/05/03/22:07:17

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-Id: <199905040206.VAA25326@modi.xraylith.wisc.edu>
X-Authentication-Warning: modi.xraylith.wisc.edu: localhost.xraylith.wisc.edu [127.0.0.1] didn't use HELO protocol
To: Corinna Vinschen <corinna DOT vinschen AT cityweb DOT de>
cc: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: (fixed patch) "%E" formatting for the humans
In-reply-to: Your message of "Tue, 04 May 1999 00:41:41 +0200."
<372E2625 DOT 791A1EA AT cityweb DOT de>
Date: Mon, 03 May 1999 21:06:48 -0500
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>

Corinna Vinschen <corinna DOT vinschen AT cityweb DOT de> writes:
> 
> FormatMessage has an option, to allocate the needed buffer itself
> (FORMAT_MESSAGE_ALLOCATE_BUFFER or similar). This buffer should
> then be freed with LocalFree() after usage.
> Would this be an alternative?
> 

That was what I had done at first, only to discover that it doesn't fit
into the model used by small_vsprintf etc al very well (passed in pre
allocated buffer, arbitrary number of formatting directives, etc make
it impossible to inject a newly allocated buffer within). I'd welcome 
any suggestions of course.

Regards,
Mumit

- Raw text -


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