Hello,
as already said, you use the UNICODE character set.
strcpy, scanf, etc. are functions for non-UNICODE code.
Have a look at the documentation of the old C-function, for example strcpy: strcpy-wcscpy-mbscpy
I suggest you should use the TCHAR routines when you use the C-routines. Have a look in the documentation, there is _tcscpy for TCHAR.
When you build in UNICODE, TCHAR ist the wide character, when you use MBCS, then it's the "normal" char-type.
So when you use the TCHAR-routine, then the compiler itself uses the correct function in your character set.
Here is an explanation for using TCHAR: What-are-TCHAR-WCHAR-LPSTR-LPWSTR-LPCTSTR-etc
Your code would look like this:
TCHAR temppath[500];
_tcscpy(temppath, REG_TEMP_TEMPL_FILE);
Regards, Guido