摘要:                    
using System;using System.Collections.Generic;using System.Text; namespace ConsoleApplication1{ class Program { static void Main(string[] args) { MessageBoxA(0,"Hello World!","My Message Box",0); Console.WriteLine("Over"); Console.Read(); }...                阅读全文
            
        随笔分类 - c++ 和C#混合编程
利用DllImport来移动文件,真快!
2012-08-03 10:40 by hongjiumu, 254 阅读, 收藏,
摘要:                    
using System;using System.Runtime.InteropServices;namespace ConsoleApplication1{ class Program { [DllImport("kernel32.dll")] static extern bool MoveFile(string lpExistingFile,string lpNewFileName); static void Main(string[] args) { string srcFileName=@"c:\1.txt"; string dstFi...                阅读全文
            
         
                    
                 浙公网安备 33010602011771号
浙公网安备 33010602011771号