Put 2 backslashes:
C:\\TESTMAP\\Testing map folder\\sometxt.txt
If there are any spaces in the path, like the one you posted, you have to add quotes, meaning quotes in a quote. To put a quote in a quote just use add a backslash before the quote character.
[php]
char* szPath = "\"C:\\TESTMAP\\Testing map folder\\sometxt.txt\"";
[/php]