去除路径最后的反斜杠
// 去除路径最后的反斜杠
void DeleteBlackslash(char* filePath)
{
DWORD z_dwPathLength = 0 ;
z_dwPathLength = strlen(filePath);
while(filePath[z_dwPathLength-1] == '\\'
|| filePath[z_dwPathLength-1] == '/')
{
filePath[--z_dwPathLength] = 0;
z_dwPathLength = strlen(filePath);
}
}
坚持就是胜利