829

Takoi vopros

Vot smotrite:#include "Myd.h"#define HOOKS_API __declspec(dllimport)#define MAX_LENGTH 256#pragma data_seg(".hdata")HHOOK hKeyhook=NULL;#pragma data_seg()LRESULT HOOKS_API CALLBACK List(int nCode,WPARAM wParam,LPARAM lParam){char buf[MAX_LENGTH]; if(nCode==HC_ACTION) { GetKeyNameText(lParam,buf,sizeof(buf)); MessageBox(NULL,buf,"Message",MB_OK); } else MessageBox(NULL,"Eto bil ne HC_ACTRION","Message",MB_OK); return CallNextHookEx(NULL,nCode,wParam,lParam);}kada kompiliu ariot 'List' : definition of dllimport function not alloweda esli obievliau #define HOOKS_API __declspec(dllexport)to vsio rabotaet normalino iza cevo?
0