Implicit cast between semantically different integer types: comparing HRESULT to an integer. Consider using SUCCEEDED or ...