C++ WinAPI: dynamic message box text?
By
pipnina
in Programming
in Programming
Go to solution
Solved by fizzlesticks,
Use a wstring then pass the message box the c_str.
wstring str = L"Message "s + to_wstring(GetLastError());
wstring cap = L"Title"s;
auto ret = MessageBox(nullptr, str.c_str(), cap.c_str(), MB_OKCANCEL);
-
Topics
-
_Darasuum_ ·
Posted in Power Supplies2 -
0
-
4
-
anothertealtiger ·
Posted in Programs, Apps and Websites2 -
Mumintroll ·
Posted in Programs, Apps and Websites4 -
ElDTac ·
Posted in CPUs, Motherboards, and Memory3 -
HunterSVK ·
Posted in Troubleshooting4 -
Ozzi ·
Posted in Networking5 -
2
-
MadManMarsBar ·
Posted in Build Logs3
-
-
play_circle_filled
Latest From ShortCircuit:
The coolest looking monitor. Period. - ASUS ROG display at Computex (Sponsored)

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