Hi Ghydo, So, "reinterpret_cast" will cast to a reference (pointer), while "int::Parse" casts to a value. Is that correct? Thanks for the help! regards, Bert
Bert Fegyverneki
Posts
-
What is this message telling me? -
What is this message telling me?Hi, I'm new to C++/CLI and I am getting compiler errors in a DLL appliction I am writing.... The DLL is passed in a text string from the calling application which needs to be cast to an unsigned int.... unsigned int^ pointParam = reinterpret_cast<unsigned int^>(dictParameters[POINT_PARAM]); Then I am using the integer value to create an array of double values but I need to increase the value by 2 so I thought I could add it in the array declaration statement... sagXArray = gcnew array<double>(pointParam + 2); I am getting the following compile error... 1>.\StrandedWireSag.cpp(42) : error C2676: binary '+' : 'System::UInt32 ^' does not define this operator or a conversion to a type acceptable to the predefined operator Why is the compiler unhappy about adding two values in a declaration? Thanks