代码如下
GetModuleFileName(NULL, inipath, sizeof(inipath));
PathRemoveFileSpec(inipath);
strcat(inipath, ACM_FILE);
编译时候报错,显示PathRemoveFileSpec(inipath);定义不识别,邱解决方案

解决方案 »

  1.   

    不是阿,在msdn上有这个api的,但是按照msdn上使用,会报错
      

  2.   

    Minimum DLL Version shlwapi.dll version 4.71 or later 
    Custom Implementation No 
    Header shlwapi.h 
    Import library shlwapi.lib 
    Minimum operating systems Windows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0 
    Unicode Implemented as ANSI and Unicode versions.  
      

  3.   

    #include "Shlwapi.h"
    这个头文件加了没?