当前位置:编程学习 > C#/ASP.NET >>

C#2005 Windows Mobile SmartPhone 5.0下面获取文件路径出错,在线等!

C#2005 Windows Mobile SmartPhone 5.0下面获取文件路径出错,具体代码如下: 

using System; 
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Data; 
using System.Drawing; 
using System.Text; 
using System.Windows.Forms; 
using System.Xml; 

namespace DeviceApplication9 

public partial class Form1 : Form 

private DataTable myTable; 
//private DataView myView; 
public Form1() 

InitializeComponent(); 


private void Form1_Load(object sender, EventArgs e) 

string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); 

// create DataTable object 
this.myTable = new DataTable(); 

// load schema and data 
this.myTable.ReadXmlSchema(path + "\\customers.xsd"); 
this.myTable.ReadXml(path + "\\customers.xml"); 



一直报错,说找不到customers.xsd文件 


目录结构请看图片 在线等!!!!!
--------------------编程问答-------------------- --------------------编程问答-------------------- 这。。。。。。。。。。。路过 顶哈    
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,