首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Windows Mobile >

在ppc 5.0 下怎么取得软件启动路径

2012-02-25 
在ppc 5.0 下如何取得软件启动路径。正常应该是:stringsPathApplication.+@ \Data.ini 但是ppc不好用。[

在ppc 5.0 下如何取得软件启动路径。
正常应该是:                         string   sPath   =   Application.   +   @ "\Data.ini ";
但是ppc不好用。

[解决办法]
string filepath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
[解决办法]
string filepath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);

热点排行