WARhead Posted January 10, 2017 Posted January 10, 2017 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now