my application icon(icon in the left-corner of the appication) and the file icon(file in the debug folder)changed to IDI_ICON2, this is want i desire.
...
Type: Posts; User: mkyong
my application icon(icon in the left-corner of the appication) and the file icon(file in the debug folder)changed to IDI_ICON2, this is want i desire.
...
tTime=SetTimer(hWnd,NULL,5000,NULL);
In win32, how can i explicitl kill the above timer? even though i used the KillTimer(hWnd,tTime)
function, after 5 seconds i also got the WM_TIMER message.....
why we must decalare the Hook API function in a DLL file? Is this possible declare the Hook API in an exe file?
i always see someone declare the following function in the hook dll file, exactly...
Win32,i write the RegCreateKeyEx() function like this, it's working
HKEY hkey;
DWORD dwDisposition=0;
RegCreateKeyEx(HKEY_CLASSES_ROOT,"NewApp",0,"",REG_OPTION_VOLATILE,KEY_ALL_ACCESS,NULL,...
um....extern "C" is the process of writing a program using modules from different or other
languages,right? or i misunderstand?
but in my program, the dll and the c++ souce code are same written...
Thanks,finally solve the problem
#include<windows.h>
#include"mydll.h"
extern "C" __declspec(dllexport) void ShowMousePos(HDC hDC, LPARAM lParam)
^^^^^^^^^^^
{
char str[80];
...
when i click leftbutton, i got this message"Unable to locate the function", why i can't get the function address?
i already put the mydll.dll file in the same folder and some PATH environment...