1.在C#中使用Windows API時必須先使用DllImport來Include相關的library:
example :
using System.Runtime.InteropServices;
using System.Diagnostics;
[DllImport("user32.dll")]
private static extern IntPtr SetWindowsHookEx(
HookType code,
MSHookProc func,
公告版位
- Oct 27 Tue 2009 21:15
How to use mouse hook and keyboard hook with C#
- Oct 17 Sat 2009 16:49
Install fltk-1.1.9,microwindows and nxlib-0.45 on redhat 9.0
1. mkdir nano-X/SimulationEnvironment
tar zxvf fltk-1.1.9-source.tar.gz
tar zxvf microwindows-full-0.91.tar.gz
tar zxvf nxlib-0.45.tar.gz
2. Compiler nxlib-0.45
2-1. Modify nxlib-0.45/Makefile
11 MWIN=/home/nano-X/SimulationEnvironment/microwindows-0.91/src
24 SHAREDLIB=N
28 CFLAGS += -DXCONST=_Xconst