| hyundoj (7) | |
|
Can I use format in MessagBox::Show? I want to use like below. char *filename; filename = "test.txt"; .... .... MessageBox::Show ("Failed to open file %s", filename); Is there any way to use like this, "Failed to open file %s", filename, in MessageBox? | |
|
|
|
| Aceix (455) | |
| Is this C++? | |
|
|
|
| hyundoj (7) | |
| Yes, it is Visual C++. | |
|
|
|
| Aceix (455) | |||
Then I've not heard of MessageBox::Show before,but just MessageBox() function--WinAPI.But I know of a trick of combining the windows version of sprintf which is wsprintf,with MessageBox() function, and it works exactly as printf(in C). eg:
--------------------------------References-------------------------------------- * will be wchar_t if UNICODE is defined, otherwise, char HTH(Hope This Helps), Aceix. | |||
|
Last edited on
|
|||