码迷,mamicode.com
首页 > Windows程序 > 详细

C# 指定父層級目錄

时间:2018-05-26 16:44:12      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:class   new   close   nbsp   ring   style   bsp   oid   string   

技术分享图片
1 lstrcatW(pszpath, "\\..\\..\\");
2 DWORD dwlen = GetFullPathNameW(pszpath, 0u, null, null);
3 void* pv = malloc((size_t)(uint)dwlen);
4 GetFullPathNameW(pszpath, dwlen, (char*)pv, null);
5 string sz = new string((char*)pv);
6 free(pv);
View Code

 

C# 指定父層級目錄

标签:class   new   close   nbsp   ring   style   bsp   oid   string   

原文地址:https://www.cnblogs.com/shitekudasai/p/9093170.html

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