读书人

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

发布时间: 2012-02-25 10:01:48 作者: rapoo

在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);

读书人网 >Windows Mobile

热点推荐