日期:2014-05-20  浏览次数:21084 次

请问下C++的.dll函数里,用C#语言怎么写?
例如
在WIN32API.TXT文件中

Public   Const   WM_KEYFIRST   =   &H100
Public   Const   WM_KEYDOWN   =   &H100
Public   Const   WM_KEYUP   =   &H101
Public   Const   WM_CHAR   =   &H102
Public   Const   WM_DEADCHAR   =   &H103
Public   Const   WM_SYSKEYDOWN   =   &H104
Public   Const   WM_SYSKEYUP   =   &H105
Public   Const   WM_SYSCHAR   =   &H106
Public   Const   WM_SYSDEADCHAR   =   &H107
Public   Const   WM_KEYLAST   =   &H108
Public   Const   WM_INITDIALOG   =   &H110
Public   Const   WM_COMMAND   =   &H111
Public   Const   WM_SYSCOMMAND   =   &H112
Public   Const   WM_TIMER   =   &H113
Public   Const   WM_HSCROLL   =   &H114
Public   Const   WM_VSCROLL   =   &H115
Public   Const   WM_INITMENU   =   &H116
Public   Const   WM_INITMENUPOPUP   =   &H117
Public   Const   WM_MENUSELECT   =   &H11F
Public   Const   WM_MENUCHAR   =   &H120
Public   Const   WM_ENTERIDLE   =   &H121

Public   Const   WM_CTLCOLORMSGBOX   =   &H132
Public   Const   WM_CTLCOLOREDIT   =   &H133
Public   Const   WM_CTLCOLORLISTBOX   =   &H134
Public   Const   WM_CTLCOLORBTN   =   &H135
Public   Const   WM_CTLCOLORDLG   =   &H136
Public   Const   WM_CTLCOLORSCROLLBAR   =   &H137
Public   Const   WM_CTLCOLORSTATIC   =   &H138

Public   Const   WM_MOUSEFIRST   =   &H200
Public   Const   WM_MOUSEMOVE   =   &H200
Public   Const   WM_LBUTTONDOWN   =   &H201
Public   Const   WM_LBUTTONUP   =   &H202
Public   Const   WM_LBUTTONDBLCLK   =   &H203
Public   Const   WM_RBUTTONDOWN   =   &H204
Public   Const   WM_RBUTTONUP   =   &H205
Public   Const   WM_RBUTTONDBLCLK   =   &H206
Public   Const   WM_MBUTTONDOWN   =   &H207
Public   Const   WM_MBUTTONUP   =   &H208
Public   Const   WM_MBUTTONDBLCLK   =   &H209
Public   Const   WM_MOUSELAST   =   &H209

Public   Const   WM_PARENTNOTIFY   =   &H210
Public   Const   WM_ENTERMENULOOP   =   &H211
Public   Const   WM_EXITMENULOOP   =   &H212
Public   Const   WM_MDICREATE   =   &H220
Public   Const   WM_MDIDESTROY   =   &H221
Public   Const   WM_MDIACTIVATE   =   &H222
Public   Const   WM_MDIRESTORE   =   &H223
Public   Const   WM_MDINEXT   =   &H224
Public   Const   WM_MDIMAXIMIZE   =   &H225
Public   Const   WM_MDITILE   =   &H226
Public   Const   WM_MDICASCADE   =   &H227
Public   Const   WM_MDIICONARRANGE   =   &H228
Public   Const   WM_MDIGETACTIVE   =   &H229
Public   Const   WM_MDISETMENU   =   &H230
Public   Const   WM_DROPFILES   =   &H233