2

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

Jasir
  • 677
  • 1
  • 8
  • 26

1 Answers1

2

You can use std::stringstream

std::stringstream ss;
ss << hwnd;
OutputDebugStringA(ss.str().c_str());
Caesar
  • 9,483
  • 8
  • 40
  • 66