lguilhermee / Discord-DX11-Overlay-Hook

Discord Hooking
MIT License
223 stars 48 forks source link

need help compiling #4

Closed iCgzxNyXLH closed 4 years ago

iCgzxNyXLH commented 4 years ago

I get the error c2440 return cannot convert from bool to HCURSOR if you can help thanks

LionHackerman commented 4 years ago

same

Nou4r commented 4 years ago

So any fix on this besides removing line 183? Whats the purpose of releasing this code if it doesn't work as intended and not replying to issues?

PieterVanZyl-Dev commented 4 years ago

Same on myside, Error from Bool to Hcursor

PieterVanZyl-Dev commented 4 years ago

Fixed this by changing code to

if (!addrSetCursor)
    return NULL;

C++ doesn't allow false returns for something of type HCURSOR

lguilhermee commented 4 years ago

HCURSOR its a void*, just cast, or make it as permissive in the project settings