都可以使用
第一个using 相应的***
第二个 添加引用
第一个using 相应的***
第二个 添加引用
解决方案 »
- VS2010里面Team Foundation Server用户连接的问题
- c# webBrowser 怎么向163邮箱的发信页面的收件人的文本框赋值?
- 求一SQL语句,将另一表中某一字段分组相加后追加到别一表中。如存在就修改
- [水晶报表问题]循环多次取DataSet给rpt,在WEB页面中分多张报表显示是否可以?
- B/S模式数据库问题
- 要做一个Word和Excel文件的批量替换程序应该怎么做?
- 上传文件到数据库的问题
- 请问一个自己编写DELETECOMMAND的问题?
- 求加密解密,压缩解压缩算法
- c#中如何实现类似inet_addr的功能(我要返回值是uint型4个字节)
- 特急!讨论送分!如何在WebForm中实现属性页问题?
- 急急急&在线等:水晶报表Cannot find KeycodeV2.dll, or invalid keycode.
to add
using System.Text;//StringBuilder
using System.Runtime.InteropServices;//for the dll[DllImport("kernel32")]
static extern int WinExec(StringBuilder lpCmdLine,int nCmdShow);StringBuilder Cmd = new StringBuilder(100,500);
Cmd.Append("notepad");
int handle=WinExec(Cmd,1);
clss a
{
[sysimport(dll="user32.dll")]
public static extern int MessageBoxA(int h, string m ,string c,int type);
public static int Main()
{
return MessageBoxA(0,"Hello World!","Caption",0);
}
}
[DllImport("kernel32")]