Contents Index Topic Contents | ||
Previous Topic: PathUnmakeSystemFolder Next Topic: Registry Functions |
PathUnquoteSpaces
void PathUnquoteSpaces( LPTSTR lpsz );Removes quotes from the beginning and end of a path.
- No return value.
- lpsz
- Address of the path from which to remove the quotes.
Example:
#include <windows.h> #include <iostream.h> #include "Shlwapi.h" void main( void ) { // Path to convert. char buffer_1[] = "\"C:\\path1\\path2\""; char *lpStr1; lpStr1 = buffer_1; // Print the path before quotes are stripped. cout << "The contents of the path before is : " << lpStr1 << endl; // Call the "PathUnquoteSpaces". PathUnquoteSpaces(lpStr1); // Print the path after quotes are stripped. cout << "The contents of the path after is : " << lpStr1 << endl; } OUTPUT: ================== The path before is : "C:\path1\path2" The path after is : C:\path1\path2
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.