码迷,mamicode.com
首页 > 编程语言 > 详细

C/C++ Windows API——获取系统指定目录(转)

时间:2020-01-09 01:12:22      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:输出   path   tle   win   获取   detail   tsp   ima   inf   

原文地址:C/C++ Windows API——获取系统指定目录

经测试,在win10 VS2017中用wprintf()输出正常,SHGetSpecialFolderPath函数也正常运行

技术图片

但是用MinGW(gcc)编译器时,wprintf()函数输出乱码,必须用printf()输出,并且SHGetSpecialFolderPath()运行全部失败

技术图片

C/C++ Windows API——获取系统指定目录(转)

标签:输出   path   tle   win   获取   detail   tsp   ima   inf   

原文地址:https://www.cnblogs.com/jixiaohua/p/12169120.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!