HWND TO string and string to HWND conversion
-
so far i am able to convert HWND to string but i am not able to find a way to convert string to HWND . There is a way to convert hex string to int but not hex. so either someone tell me int to hex conversion or direct string to hex. Unmanaged in a .NET world
-
so far i am able to convert HWND to string but i am not able to find a way to convert string to HWND . There is a way to convert hex string to int but not hex. so either someone tell me int to hex conversion or direct string to hex. Unmanaged in a .NET world
string sApple = "463A"; long lNum; char* pE; lNum = strtol(sApple.c_str(), &pE, 16); printf("0x%X\n", lNum); HWND hW = (HWND)lNum; Maxwell Chen
-
string sApple = "463A"; long lNum; char* pE; lNum = strtol(sApple.c_str(), &pE, 16); printf("0x%X\n", lNum); HWND hW = (HWND)lNum; Maxwell Chen
Thanx very much , it really worked , thanx Unmanaged in a .NET world