Click to See Complete Forum and Search --> : Unusual Problem in "vcclr.h" and PtrToStringChars..


somu0915
April 11th, 2008, 07:03 AM
I am having a strange problem..
I had a piece of running code, untill suddenly one day out of nowhere, the compiler flashes this error:


OffsetToStringData is not a member of 'System::Runtime::CompilerServices::RuntimeHelpers::OffsetToStringData'

This error is in vcclr.h

I am using PtrToStringChars() method to convert from System::String to Char*..

What is most strange is that when I looked up the BCL heirarchy, I found that OffsetToStringData is a member of System::Runtime::CompilerServices::RuntimeHelpers::OffsetToStringData !!!

Now isnt that strange!!!

Can anyone help???