I have a string with a 16-riche number (for example 0xb0844):
string h;
and variable type HWND:
hwnd h1;
Question: How can I convert a line in Humble HWND?
Next I use
setforegroundwindow (h1);
Answer 1, Authority 100%
So for example:
if (1! = :: std :: sscanf (text.c_str (), "0x% zx", :: STD :: Addressof (Handle)))
{
Throw :: Std :: Runtime_error {"Bad Value"};
}