首先引用:
System.Runtime.InteropServices然后:
[DllImport("KERNEL32.DLL", EntryPoint="MoveFileW", SetLastError=true,
CharSet=CharSet.Unicode, ExactSpelling=true,
CallingConvention=CallingConvention.StdCall)]
public static extern bool MoveFile(String src, String dst);
解决方案 »
- 求助:项目出现错误!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- c# %20如何转换成空格?
- 新手求助,关于修改密码页面,请大家帮忙,谢谢
- Xml档多个节点,如何取返回值
- 关于C#中模糊查询的问题
- 关于word的问题
- C# 聊天系统
- 简单问题:
- 高手请教:System.Diagnostics.Process.Start("winword.exe",path) 打开word文件时错误
- winform中listbox加入checkbox后滚动条问题
- 最近在研究crystalReport,所以有很多问题需要请教各为了
- winform分布式应用程序如何将附件(图片及word表格)上传至服务器
public static extern int32 readcard(int32 nPort, int32 nTrack, string sData1, string sData2, int32 nModel );