从msdn中搜索的例子
运行居然报错
LINK : LNK4073: cannot create map for .ILK file; linking nonincrementally
removepath.obj : error LNK2001: unresolved external symbol __imp__PathRemoveFi
leSpecA@4
Debug/removepath.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.#include <windows.h>
#include <iostream.h>
#include "SHLWAPI.H"void main( void )
{

    // Path to include file spec.
char buffer_1[ ] = "C:\\TEST\\sample.txt"; 
char *lpStr1;
lpStr1 = buffer_1;

    // Print the path with the file spec.
cout << "The path with file spec is          : " << lpStr1 << endl;

    // Call to "PathRemoveFileSpec".
::PathRemoveFileSpec(lpStr1);

// Print the path without the file spec.
cout << "\nThe path without file spec is       : " << lpStr1 << endl;
}