在VC中怎么得到当前目录?

muiz 2003-09-24 11:35:00
在VC中怎么得到当前目录?或C中也可。
当前目录就是程序运行的目录。谢谢
...全文
114 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
弟十六 2003-09-24
  • 打赏
  • 举报
回复
The GetCurrentDirectory function retrieves the current directory for the current process.


DWORD GetCurrentDirectory(
DWORD nBufferLength,
LPTSTR lpBuffer
);

以上文字摘自MSDN。
doer_ljy 2003-09-24
  • 打赏
  • 举报
回复
WindowsAPI
GetCurrentDir()
muiz 2003-09-24
  • 打赏
  • 举报
回复
谢谢!我试试看

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧