help in dll
-
HHOOK h; LRESULT CALLBACK CallWndProc(int nCode,WPARAM wParam,LPARAM lParam) { switch(nCode) { case WM_SIZING: return 0; break; case WM_MOVING: return 0; break; default: return CallNextHookEx(h,nCode,wParam,lParam); } } void InstallHook() { h=SetWindowsHookEx(WH_CALLWNDPROC,CallWndProc,0,0); }
this code if made in mfc dll but i have 2 problems : 1- i dont know if the created DLL is created correctly or not 2- i used this DLL in another app and called InstallHook but a big msg appears said that there is no entry piont for the installhook in the dll if anyone knows anything plz reply me -
HHOOK h; LRESULT CALLBACK CallWndProc(int nCode,WPARAM wParam,LPARAM lParam) { switch(nCode) { case WM_SIZING: return 0; break; case WM_MOVING: return 0; break; default: return CallNextHookEx(h,nCode,wParam,lParam); } } void InstallHook() { h=SetWindowsHookEx(WH_CALLWNDPROC,CallWndProc,0,0); }
this code if made in mfc dll but i have 2 problems : 1- i dont know if the created DLL is created correctly or not 2- i used this DLL in another app and called InstallHook but a big msg appears said that there is no entry piont for the installhook in the dll if anyone knows anything plz reply mePerhaps if you post this on the Visual C++ forum[^] someone might be able to help.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar The Second EuroCPian Event will be in Brussels on the 4th of September Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way! My Blog