From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2007-09-13 15:48:13


eg wrote:
> Tobias Schwinger wrote:
>> Peter Dimov wrote:
>>> Tobias Schwinger:
>>>
>>>> Hello,
>>>>
>>>> as you probably know there's a Service Pack for Visual Studio 2005 which
>>>> fixes a significant number of bugs.
>>>>
>>>> Unfortunately _MSC_VER is 1400 for MSVC8 with and without Service Pack,
>>>> so there is no straightforward way for a library to find out whether SP1
>>>> fixes are available or not.
>>> What does _MSC_FULL_VER say?
>> I probably should have mentioned it's 140050727 for both versions ;-/.
>>
>>
>
> Can you use registry info somehow?
>
> http://blogs.msdn.com/heaths/archive/2006/12/17/detecting-visual-studio-2005-service-pack-1.aspx

Leaves us with the "reduced" problem of querying the Windows registry
with the preprocessor :-). Kidding aside, I think that checking for that
PP bug (mentioned in the OP) is the only reasonable option, there is.

Unfortunately I don't know how to trigger it (still hoping for someone
who has met it personally).

Regards,
Tobias