Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hex representation of HWND 1

Status
Not open for further replies.

PavelGur

Programmer
Sep 21, 2001
75
I need to display in the MessageBox hex representation of HWND. I can easily see in Debug mode. However I did not find yet the conversion of handle data to hex for display. I tried wsprintf("handle %x", App_hWnd). But it gives me compile error: cannot convert parameter 2 from 'struct HWND__ *' to 'const char *.
Thanks, Pavel.
 
> I tried wsprintf("handle %x", App_hWnd). But it gives me compile error
Because the function expects
wsprintf( bufferForAnswer, "format with conversions", parameters );

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top