Re: Problem with reading an int with operator>>



Thanks for the reply. Inline:

P.J. Plauger wrote:

And what exactly is the purpose of it? Is it just so these objects can be passed across DLL boundaries?


Well, it does save link time and code size in .exe files.

Yes, but as always with dynamic linking, this is no real advantage if I have to ship the DLL's myself. Is the real reason not what I say (same as it is for MFC with extension DLL's)?

Personally, I would be prepared to forgo this advantage if I could keep all my Standard Library in the headers where it could be easily updated. Is it possible to do this even if one is dynamically linking CRT (and MFC)?


Dunno. I'd like to think so.


But don't you write these library headers? Is it just a matter of removing all the "#ifdef _DLL" sections? What I would like (if I used dynamic linking) would be a preprocessor symbol that I could define that would remove the "extern" declarations, something like:

#if defined _DLL and !defined _NO_EXTERN

Would this not be possible? Or is there more to it than this?

It seems to me that the existence of msvcp60.dll (and VC7/8 versions) is an impediment to Microsoft updating the standard library when improvements have been found. Or am I missing something here?


I think Microsoft takes a more comprehensive view of updating the
library, since they can provide new versions of headers, DLLs, and
all in one SP.

Yes, but in VC6 we had 6 service packs none of which, for whatever reason, included the patches. And in VC7/7.1/8 we so far have none.

David Wilkinson

.



Relevant Pages

  • Re: Problem with reading an int with operator>>
    ... Grep the headers for all the DLL magic. ... dynamically linking CRT? ... an impediment to Microsoft updating the standard library when improvements ...
    (microsoft.public.vc.stl)
  • Re: HLA stdlib v2.3 is now available
    ... dynamic linking on modern operating systems to save on resources. ... the whole thing into a DLL and then *any* assembler ... all the apps), but how many assembly apps does the average person run ... statically link in all the library code you use so your application is ...
    (alt.lang.asm)
  • Re: Dynamic DLL Loading or Static ?
    ... A DLL is dynamic linked always: ... terms are load-time dynamic linking and run-time dynamic linking. ... > initialize this DLL and I'm loading it dynamically. ... This is the default value for WinXP SP1 and WinSrv03. ...
    (borland.public.delphi.nativeapi)
  • Re: [LogoForum] arguments evaluation sequence
    ... > which automatically searches the function "registerPrimitives " in a user ... > that dll. ... that uses your DLL (i.e. no need to search for registered primitives). ... No other libraries or headers need to be installed, ...
    (comp.lang.logo)
  • Re: c code reusability
    ... disk space and computer memory are relatively cheap. ... of dynamic linking, ... The average size of a loaded DLL is 558 KB. ...
    (comp.lang.c)

Loading