Re: Problem with reading an int with operator>>
- From: "Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom>
- Date: Mon, 13 Mar 2006 19:13:20 -0000
I don't see this _BUILD preprocessor symbol in the Standard Library
files for VC6 or VC7. Is this a VC8 thing?
As you say, Pete Becker is the expert. But what I mean is: Suppose my
application consists of a .exe and one or more DLL's. Then if I want to
pass std::string objects between two modules, then both these modules
had better be using the same heap. If either is statically linked to
CRT, they won't be. So you are forced to either NOT pass std::string
objects across the boundary (my choice) or link everything dynamically
to CRT.
All correct so far.
You can pass std::string and not use CRT in DLL form but it is effectively
read-only.
And it is not just the heap, it is any static data that the C or C++
libraries use.
So fopen() in an EXE and fclose() in a DLL may cause problems.
In the latter case, I think I have to use (and ship) msvcp60.dll
(or later version), though I'm not sure why. I just don't see why this
is necessary. If my two modules are using the same CRT heap anyway, why
do I need msvcp60.dll ?
msvcp60.dll is the C++ RTL functions, _NOT_ the C RTL functions in DLL form.
If you statically link, I am not sure you should get this dependency.
Stephen Howe
.
- Follow-Ups:
- Re: Problem with reading an int with operator>>
- From: David Wilkinson
- Re: Problem with reading an int with operator>>
- References:
- Re: Problem with reading an int with operator>>
- From: P.J. Plauger
- Re: Problem with reading an int with operator>>
- From: P.J. Plauger
- Re: Problem with reading an int with operator>>
- From: David Wilkinson
- Re: Problem with reading an int with operator>>
- From: P.J. Plauger
- Re: Problem with reading an int with operator>>
- From: David Wilkinson
- Re: Problem with reading an int with operator>>
- From: P.J. Plauger
- Re: Problem with reading an int with operator>>
- From: David Wilkinson
- Re: Problem with reading an int with operator>>
- Prev by Date: Re: Overly aggressive checking in new STL (Visual Studio 2005)?
- Next by Date: Re: Overly aggressive checking in new STL (Visual Studio 2005)?
- Previous by thread: Re: Problem with reading an int with operator>>
- Next by thread: Re: Problem with reading an int with operator>>
- Index(es):
Relevant Pages
|