I'm using Visual C++ 2003 and .NET Framework 1.1
Type* myType = String::typeid;
results in syntax error :
error C2589: 'typeid' : illegal token on right side of '::'
The only typeid I found in the help is the C++ standard typeid returning a "const type_info&"
Well if you tell me I use too old .NET version, I agree with you. Good news this is corrected in newer versions. I have to stick to the 2003 version, so I'll keep the Type::GetType("System.Stri
Main Topics
Browse All Topics





by: Omego2KPosted on 2009-10-19 at 06:09:05ID: 25604791
what version of managed C++?
In 2005/08 you would do this:
Type^ myType = String::typeid;
It won't show in the intellisense, but it's there. In 2003 I am guessing it would be similar, like this:
Type* myType = String::typeid;