I'm presuming your working from C++ here? Based off that assumption...
#include <stdio.h>
char szError[] = "Your PC is low";
int iErrorID = 55;
char szErrorMessage[25];
sprintf( szErrorMessage, "Error %d: %s", iErrorID, szError );
MessageBox( NULL, szErrorMessage, "Error", MB_OK );