Easy C++ MessageBox question?

Hi guys! I know this is going to be one of those things where it turns out that it was something really small, simple and obvious but I am having trouble making a messagebox in C++ MFC application display a string. Here is what I have: string testVariable = " Testing."; AfxMessageBox(_T("Test... show more Hi guys!

I know this is going to be one of those things where it turns out that it was something really small, simple and obvious but I am having trouble making a messagebox in C++ MFC application display a string.

Here is what I have:

string testVariable = " Testing.";

AfxMessageBox(_T("Test message." + testVariable));

I want the messagebox to display both the text and the variable but it only displays the text right now. I know that this is going to be a facepalm moment when I get the answer, oh well.

Thank you in advance.
2 answers 2