🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2069

Re: But DO C hackers code concisely?

#2069
From: Miguel Carrasquer Vidal
Date: Sun, 25 Feb 1996 17:56
55 lines
2423 bytes
"Robert F. Monroe" <Robert@hever.demon.co.uk> wrote:

>In article: <4gfb10$21p@solutions.solon.com>  mcv@pi.net (Miguel Carrasquer Vidal) writes:

>> This is what Microsoft's ``Knowledge Base'' has to say about it:
>	[snip]
>> The sscanf(), fprintf(), and scanf() functions are not available for
>> Windows DLLs.

>A brief 10 minute experiment proved to me that this is simply
>not true. I used VC++ 2.0. No problem.

>int __declspec(dllexport) TestPrintfAndScanf(void)

But that's Win32!

>PS: I don't mean to sound like I am defending Microsoft, but it 
>does not appear that they have done anything "stupid" or 
>"insane". In this case, it looks like their worst offense is 
>offering misleading documentation. Anyone who is genuinely 
>interested in using these functions in a DLL should consider
>testing them. You might be surprised at the results.

I don't mean to sound like I'm defending Microsoft either,
but their documentation is certainly not misleading.
I'll quote the article's header again:

>PSS ID Number: Q76684
>Article last modified on 08-02-1995
> 
>3.00 3.10
> 
>WINDOWS
> 
>----------------------------------------------------------------------
>The information in this article applies to:
> 
> - Microsoft Windows Software Development Kit (SDK) for Windows
>   versions 3.0 and 3.1
             ^^^     ^^^

The documentation is correct.

What's at fault is the implementation of the 16-bit DLL runtime
library (at least for earlier, pre "Visual", versions of Microsoft
C/C++).  



==
Miguel Carrasquer Vidal                     ~ ~
Amsterdam                   _____________  ~ ~
mcv@pi.net                 |_____________|||

========================== Ce .sig n'est pas une .cig
Technical Details
Message-ID: <4gq7sj$ohl@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4gfb10$21p@solutions.solon.com> <4g27tf$qf6@solutions.solon.com> <4fa7e7$2pu@solutions.solon.com> <4fst4u$2f1@solutions.solon.com> <4fvh88$e3l@solutions.solon.com> <4g54uq$aoi@solutions.solon.com> <4ghnr6$dko@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: mcv@pi.net (Miguel Carrasquer Vidal)
Newsgroups: comp.lang.c.moderated
Subject: Re: But DO C hackers code concisely?
Date: 25 Feb 1996 11:56:35 -0600
Organization: Planet Internet
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4gq7sj$ohl@solutions.solon.com>
References: <4gfb10$21p@solutions.solon.com>  <4g27tf$qf6@solutions.solon.com>  <4fa7e7$2pu@solutions.solon.com> <4fst4u$2f1@solutions.solon.com> <4fvh88$e3l@solutions.solon.com> <4g54uq$aoi@solutions.solon.com> <4ghnr6$dko@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Newsreader: Forte Free Agent 1.0.82