OK, but *I'm* not including <gcroot.h>. <vcclr.h> is the one including it.
I'm including <vcclr.h> so I can use PtrToStringChars. I figured, "the SDK
gives me vcclr.h, so I'm set."
Apparently I was wrong. But I don't think I should have been.
>> To clarify... vcclr.h and gcroot.h are installed in \Program
>> Files\Microsoft Visual Studio 8\VC\include. <msclr\gcroot.h> is not
[quoted text clipped - 5 lines]
>
> Willy.
Unfortunately, vcclr.h includes gcroot.h which at his turn includes
msclr\gcroot, if you don't need msclr\gcroot.h you could remove the #include
gcroot.h from vcclr.h, or move the PtrToStringChars to a private header.
IMO this is wrong, I would suggest you to file an issue to the product
feedback at http://lab.msdn.microsoft.com/productfeedback/.
Willy.
> OK, but *I'm* not including <gcroot.h>. <vcclr.h> is the one including it.
>
[quoted text clipped - 12 lines]
>>
>> Willy.
Hugh - 16 Dec 2005 01:42 GMT
Cool. I ended up copying the inlined PtrToStringChars function to a private
header, but ick... code smell.
Thanks for the suggestion. I'll do that.
> Unfortunately, vcclr.h includes gcroot.h which at his turn includes
> msclr\gcroot, if you don't need msclr\gcroot.h you could remove the
[quoted text clipped - 22 lines]
>>>
>>> Willy.