home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pmafire!news.dell.com!swrinde!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!olivea!bu.edu!wang!dbushong
- From: dbushong@wang.com (Dave Bushong)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Re: No sscanf() in a DLL? Really?
- Message-ID: <bukr30.4e5@wang.com>
- Date: 14 Sep 92 15:30:34 GMT
- References: <budi69.9ye@wang.com> <602@lax.lax.pe-nelson.com>
- Organization: Wang Labs, Lowell MA, USA
- Lines: 36
-
- twbrown@PE-Nelson.COM (Tom W. Brown) writes:
-
- >In article <budi69.9ye@wang.com>, dbushong@wang.com (Dave Bushong) writes:
- >|>
- >|> Is it true that you can't use sscanf in a DLL (according to
- >|> Microsoft's windows.h)?
- >|>
-
- >I'm not sure what you mean about windows.h "telling" you that sscanf isn't
- >DLL compatible, but I'm using BC++ 3.1 and the version of sscanf in Borland's
- >runtime is perfectly happy being called from a DLL (Borland's runtime library
- >is available, in fact, as a DLL).
-
- That's where the problem is -- I'm porting something from BC to QCWIN,
- and nearly everything worked OK except references to sscanf and similar.
- There is a conditional in windows.h (in the MS version) that goes
- something like
-
- #if !DLL
-
- ...prototypes for sscanf, etc.
-
- #endif
-
- which is not the case in the Borland version.
-
- I did receive a wsscanf from some kind soul which would appear
- to fix my problem.
-
- Thanks!
-
- Dave
- --
- Dave Bushong, Wang Laboratories, Inc.
- Project Leader, OCR products
- Internet: dbushong@wang.com
-