View Single Post
Downtown1
Veteran Member
Join Date: Mar 2004
Old 01-30-2010 , 12:13   Re: #define string in string
Reply With Quote #16

Good luck with this, I've been racking my brains over it a bit myself..

but honestly concatenating 2 strings is not a big of a deal as stringizing a token (e.g. #define FOO(x) #foo ala C). Just use StrCat to concatenate 2 strings at runtime, the performance isn't going to be that big of a deal.

The problem is that string arrays are passed in by reference, so you can't just return a newly allocated string, though I guess you could just have a static concatenate buffer if the string was consumed right away (or reused to concatenate to something else).
Downtown1 is offline