DearImGui errors

Viewed 29

Im new to C++, and 2 days ago i started a project, but since then i have got 4 errors, i already looked into google, and some friends that know more than me, im pretty sure this is all about the imgui (im using DearImGui) But as i said, im new to cpp in general, So im hoping that someone can explain me what i did wrong here, anyways thanks for your time!

Errors:

Error C2664 'bool ImGui_ImplWin32_Init(void *)': cannot convert argument 1 from 'int' to 'void *' \hooks\functions\directx\present.cpp 132

Error C2664 'HWND FindWindowW(LPCWSTR,LPCWSTR)': cannot convert argument 1 from 'char *' to 'LPCWSTR' \hooks\functions\directx\present.cpp 129

Error C3536 'hwnd': cannot be used before it is initialized
\hooks\functions\directx\present.cpp 130

Error C2664 'LONG_PTR SetWindowLongPtrW(HWND,int,LONG_PTR)': cannot convert argument 1 from 'int' to 'HWND' \hooks\functions\directx\present.cpp 130

if any code needed, just ask and i will send!

(sorry for shit english)

0 Answers
Related