We need to pass a format _TCHAR * string, and a number of char * strings into a function with variable-length args:
inline void FooBar(const _TCHAR *szFmt,
Usually it looks like the following:
char *foo = "foo"; char *bar = "bar"; #ifdef UNICODE LogToFileW( L"Test %S %S", foo, bar); // big S #else LogToFileA( "Test %s %s", foo, bar); #endif
Your question is not completely clear. How your function is implemented and how do you use it?