SHGetFolderPath (NULL,CSIDL_COMMON_DOCUMENTS,NULL,0,(LPSTR)strPath) ; strTelent = strPath ;
1 strTelent = strTelent +" \\Tencent\\QQ" ;
2//strTelent = "C:\\Users\\Public\\Documents\\Tencent\\QQ" ;为什么 1 和 2 得到结果经过调试中看到的结果一样的,但是对1 的引用出错,而 2却可以正常
1 strTelent = strTelent +" \\Tencent\\QQ" ;
2//strTelent = "C:\\Users\\Public\\Documents\\Tencent\\QQ" ;为什么 1 和 2 得到结果经过调试中看到的结果一样的,但是对1 的引用出错,而 2却可以正常
是不是多了一个空格同时打印一下strTelent 看是否正确
我也感觉1 strTelent = strTelent +" \\Tencent\\QQ" ;中第一个“\\”前多了个空格