用什么函数

解决方案 »

  1.   

    GetCurrentDirectory()DWORD GetCurrentDirectory(
      DWORD nBufferLength,  // size, in characters, of directory buffer
      LPTSTR lpBuffer       // pointer to buffer for current directory
    );
      

  2.   

    AfxGetApp()->m_pszHelpFilePath
    得到了字符串之后;可以转换为你需要的任意东西;
      

  3.   

    GetCurrentDirectory()DWORD GetCurrentDirectory(
      DWORD nBufferLength,  // size, in characters, of directory buffer
      LPTSTR lpBuffer       // pointer to buffer for current directory
    );
      

  4.   

    GetModuleFileName()可获得进程路径名
    GetCurrentDirectory()获得当前路径
    用法看MSDN可得