I need to create two projects with different names. Both projects will have the same code.
So, I started replacing the places that call the old name with a preprocessor in stdafx.h called APP_NAME
In stdafx.h I put
#define APP_NAME _T("My name")
And when I find code like
function(parm1,_T("My old name have a error"));
I want to replace
function(parm1, APP_NAME _T(" have a error"));
But when mixing wide (T ("x") or L "), many errors appear with pure narrow (" ")
error C2308: concatenation of inconsistent strings
Can any preprocessing magic be used to overcome it?
source
share