Search:

Type: Posts; User: mkyong

Search: Search took 0.01 seconds.

  1. Thread: Icon problem

    by mkyong
    Replies
    0
    Views
    1,995

    Icon problem

    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.
    ...
  2. Thread: Wm_timer?

    by mkyong
    Replies
    2
    Views
    1,013

    Wm_timer?

    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.....
  3. Thread: Hook problem

    by mkyong
    Replies
    1
    Views
    1,308

    Hook problem

    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...
  4. Replies
    2
    Views
    8,190

    RegCreateKey() ?

    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,...
  5. Replies
    9
    Views
    1,846

    why?

    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...
  6. Replies
    9
    Views
    1,846

    Thanks

    Thanks,finally solve the problem

    #include<windows.h>
    #include"mydll.h"
    extern "C" __declspec(dllexport) void ShowMousePos(HDC hDC, LPARAM lParam)
    ^^^^^^^^^^^
    {
    char str[80];
    ...
  7. Replies
    9
    Views
    1,846

    Explicit dynamic linking

    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...
Results 1 to 7 of 7