标签: c++ hwnd lpcstr
如何将HWND数据类型转换为LPCSTR。我需要使用OutputDebugStringA函数
OutputDebugStringA
答案 0 :(得分:2)
您可以使用std::stringstream
std::stringstream ss; ss << hwnd; OutputDebugStringA(ss.str().c_str());