문제

What should i do to convert a HWND data type to LPCSTR. I need to print it to debug window using OutputDebugStringA function

도움이 되었습니까?

해결책

You can use std::stringstream

std::stringstream ss;
ss << hwnd;
OutputDebugStringA(ss.str().c_str());
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top