当前位置: 代码迷 >> Windows Mobile >> 在ppc 5.0 下怎么取得软件启动路径
  详细解决方案

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

热度:157   发布时间:2016-04-25 07:58:45.0
在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);
  相关解决方案