So you have a string like ' "file with long filename.txt" ' and you want it to become 'file with long filename.txt'? Try this:
Code:
char * RemoveQuotes(char *lpString)
{
lpString++;
lpString[lstrlen(lpString)-1]=0;
return lpString;
}
Approximate, and likely will cause a memory leak, or access violation now that I think about it. Hmmm.
Code:
void RemoveQuotes(char *lpString)
{
int size=lstrlen(lpString);
for (int i=0;i<size;i++)
{
lpString[i]=lpString[i+1];
}
lpString[size-2]=0;
}
That should work fine I think.