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