What is the proper way to cast from an 'OLE_HANDLE' to an 'HICON' for an x64 target build?
In particular with a normal C-Style cast, I get this warning when compiling with an x64 config:
warning C4312: 'type cast' : conversion from 'OLE_HANDLE' to 'HICON' of greater size
Here is the offending code:
imgList.Add((HICON)ohIcon);
The above code works fine for me, but I want to get rid of the warning when building for x64.