Jump to content

C++ MessageBox() and showing interger variables


nitekram
 Share

Recommended Posts

Use this 

wchar_t* wide;
wide = new wchar_t [<size>] // <size> is whatever size you want;
for(long i = 0 ;i < <size> ; ++i )
    wide[i] = <char_message> [i];       //<char_message> is whatever message you have in char*
int returnValue = MessageBox( <handle to owner window>, wide, <title>, <Type> )
    //<title> is also of type LPCTSTR and sholud be done same as in wide
    //<Type> is the traits of the message box you want

 

refer

https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...