C#
jslfb2008
风潇潇兮易水寒,壮士一去兮不复返
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Transparent Desktop Video C#实现透明桌面视频播放源代码
[DllImport("user32.dll", SetLastError=true)] static extern int GetWindowLong(IntPtr hWnd, int nIndex); [DllImport("user32.dll", SetLastError=true)] static extern int SetW转载 2010-03-24 11:51:00 · 2569 阅读 · 1 评论 -
c#遍历form窗体上的所有控件
//遍历Form上的所有控件foreach (System.Windows.Forms.Control control in this.Controls){ if (control is System.Windows.Forms.Button) { System.Windows.Forms.Button btn = (System.Windows原创 2010-03-28 16:53:00 · 13032 阅读 · 1 评论 -
[C#]image与byte数组的相互转换
//image to byte[]MemoryStream ms=new MemoryStream();byte[] imagedata=null; pictureBox1.Image.Save(ms,System.Drawing.Imaging.ImageFormat.Gif );imagedata=ms.GetBuffer ();//byte[] to imagem转载 2010-03-30 14:22:00 · 2578 阅读 · 0 评论 -
c# 无法加载DLL“###.dll”,: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E),解决办法总结
如果是非托管的,就用DllImport,举例 using System; using System.Runtime.InteropServices; class MainApp [DllImport("Kernel32")] //读取动态库文件 public static extern int GetProcAddress(int handle, String fun转载 2010-04-08 00:16:00 · 118068 阅读 · 22 评论
分享