码迷,mamicode.com
首页 >  
搜索关键字:dllimport    ( 445个结果
powershell 调用winapi读写ini文件
#加载winapi $ini = Add-Type -memberDefinition @" [DllImport("Kernel32")] public static extern long WritePrivateProfileString ( string section , string key , string val , string filePath ); [DllImport(...
分类:Windows程序   时间:2014-09-04 13:26:59    阅读次数:337
C# IE代理操作
1 public class IPProxy 2 { 3 [System.Runtime.InteropServices.DllImport("wininet.dll", SetLastError = true)] 4 private static exte...
分类:其他好文   时间:2014-08-29 22:38:08    阅读次数:241
如何计算一段程序逻辑运行时间?
-- 1 class Program 2 { 3 4 [System.Runtime.InteropServices.DllImport("Kernel32.dll")] 5 static extern bool QueryPerformanceCounte...
分类:其他好文   时间:2014-08-22 19:34:49    阅读次数:211
C# MDI 子窗体被父窗体控件挡住
using System.Runtime.InteropServices;[DllImport("user32")]public static extern int SetParent(int hWndChild, int hWndNewParent); Form2 f2 = new Form2(....
分类:Windows程序   时间:2014-08-22 12:14:46    阅读次数:252
C# winform 右下角弹窗
[DllImport("user32")]private static extern bool AnimateWindow(IntPtr hwnd, int dwTime, int dwFlags);//下面是可用的常量,根据不同的动画效果声明自己需要的private const int AW_HO...
分类:Windows程序   时间:2014-08-21 13:10:14    阅读次数:305
跨平台__declspec宏的使用【精】
当然有区别,__declspec(dllexport)用于导出符号,也就是定义该函数的dll;__declspec(dllimport)用于导入,也就是使用该函数。因为这个头文件既要被定义该函数的dll包含,也要被使用该函数的程序包含,当被前者包含时我们希望使用__declspec(dllexpor...
分类:其他好文   时间:2014-08-20 15:55:42    阅读次数:254
C++/C#互调步骤
一、C#调用C++ dll步骤(只能导出方法):* 1. c++建立空项目->源文件文件夹中添加cpp文件和函数* 2. c++属性设置中,配置类型设置为动态库dll,公共语言运行时支持改为/clr* 3. c#引用c++的dll* 4. c#声明c++的方法,并添加DllImport特性* 5. ...
分类:编程语言   时间:2014-08-19 15:51:44    阅读次数:201
extern
【extern】 extern修饰符用于声明在外部实现的非托管方法。 Theexternkeyword is also used as a method modifier, declaring a method written in unmanaged code. [DllImport("av...
分类:其他好文   时间:2014-08-18 18:06:12    阅读次数:221
C# 截屏类
using System.Runtime.InteropServices;using System.Drawing; 1 public class BitMapCaptureScreen 2 { 3 [DllImport("GDI32.dll")] 4 ...
分类:其他好文   时间:2014-08-13 18:36:27    阅读次数:196
关于Mdi窗口-父窗口上的控件把子窗口的挡住的问题
using System.Runtime.InteropServices;[DllImport("user32")]public static extern int SetParent(int hWndChild, int hWndNewParent);///temp2是你的子formtemp2.M...
分类:其他好文   时间:2014-08-12 12:49:04    阅读次数:185
445条   上一页 1 ... 38 39 40 41 42 ... 45 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!