Current convert decimal to hex in C#, i using code :
private string Dec2Hex(int value)
{
return value.ToString("X2");
}
Please help port to C++ Jni. Thanks
Current convert decimal to hex in C#, i using code :
private string Dec2Hex(int value)
{
return value.ToString("X2");
}
Please help port to C++ Jni. Thanks
so decimal to hex goes this way, if this helps you
std::stringstream ss;
ss<< std::hex << decimal_value;
std::string res ( ss.str() );
std::cout << res;
int value = Convert.ToInt32(/*"HexValue"*/);
String hexRepresentation = Convert.ToString(value, 16);