is there any way of concatenation #define macros in c++ (ms compiler)?
I have existing code like this:
#define LOG_FILENAME _TEXT("VendorBlaBlaDriver.log")
#define REGISTRY_FILENAME _TEXT("VendorBlaBlaDriver")
#define VENDOR_NAME _TEXT("VendorBlaBla")
I wanna do the following:
#define NAME_PART1 "VenorBlaBla"
#define NAME_PART2 "Driver"
#define LOG_FILENAME _TEXT(NAME_PART1 NAME_PART2 ".log")
#define REGISTRY_FILENAME _TEXT(NAME_PART1 NAME_PART2)
#define VENDOR_NAME _TEXT(NAME_PART1)
But compiler gives me an error:
error C2308: concatenating mismatched strings
Is there any way of doing this right? The thing is that's a component and I want to specify -D option to compiler later. I don't want to store NAME_PART1 and NAME_PART2 in source code.