主题:[讨论]手机里有相对路径嘛?
icewizardry
[专家分:0] 发布于 2007-08-24 22:22:00
我用c#编写手机程序,但不能用相对路径请问哪位大哥可以帮我解决一些,谢了...
回复列表 (共1个回复)
沙发
lanse777 [专家分:220] 发布于 2007-08-27 19:16:00
关于"获得程序当前路径"的问题
由于smartphone不支持当前路径的方法,实在是没办法
microsoft的新闻组里面得到的回答是
string strAppDir =
Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName);
MessageBox.Show(strAppDir);
我来回复