سؤال

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