User Profile

Collapse

Profile Sidebar

Collapse
RomeoPapacy
RomeoPapacy
Last Activity: Dec 30 '11, 02:36 PM
Joined: Aug 16 '08
Location: Guildford / Cardiff, UK
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • RomeoPapacy
    replied to Shell Hooks and explorer.exe
    in C
    Once again Banfa - you're a lifesaver
    I must have read that page at least 5 times and never noticed that.

    Thank you.
    See more | Go to post

    Leave a comment:


  • RomeoPapacy
    replied to Shell Hooks and explorer.exe
    in C
    If it will help, here is the code for the hook. This is compiled as a DLL using VC++ 2008 Express:
    dllmain.cpp:
    Code:
    HINSTANCE hInst;
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved
    					 )
    {
    	switch (ul_reason_for_call)
    	{
    	case DLL_PROCESS_ATTACH:
    		hInst = (HINSTANCE) hModule;
    		break;
    ...
    See more | Go to post

    Leave a comment:


  • RomeoPapacy
    replied to Shell Hooks and explorer.exe
    in C
    Thank you for your reply:

    Same symptoms as when cmd is shell:
    - Notification area works wonderfully
    - Taskbar only seems to receive HSHELL_LANGUAGE messages
    See more | Go to post

    Leave a comment:


  • RomeoPapacy
    started a topic Shell Hooks and explorer.exe
    in C

    Shell Hooks and explorer.exe

    I'm trying to write a replacement shell for Windows at the moment i have a working system tray and (sort-of) working taskbar.

    The issue at the moment is the Taskbar is failing to receive window created/activated/destroyed messages when run on it's own.
    If I run it on top of explorer it works fine. Even if i kill explorer and run it, it will work fine, but if a log into my user account with cmd.exe as shell and run it from there...
    See more | Go to post

  • RomeoPapacy
    replied to Memory Leak (40K per mouse over)
    in C
    Those are now all being deleted after use.

    Thank you for your help.
    This aspect of the program no longer leaks, the rest of the program has the memory management of a sieve but i should be able to sort that out. Thank you....
    See more | Go to post

    Leave a comment:


  • RomeoPapacy
    replied to Memory Leak (40K per mouse over)
    in C
    Thank you for your response.



    They would be deleted in the destructor for the TaakbarItem, however this should only cause the memory to go up on the first call surely? memory goes up every time the expander reopens.

    adding the "delete ps;" in the relevant places has roughly halved the memory leaking. I managed to find the main cause to be the GetDC() on line 45, adding a corresponding releaseDC...
    See more | Go to post

    Leave a comment:


  • RomeoPapacy
    started a topic Memory Leak (40K per mouse over)
    in C

    Memory Leak (40K per mouse over)

    I'm currently writing a replacement shell and am suffering from quite dire memory leaks, when running, every time I roll my mouse over the taskbar icon a new window scrolls out revealing the window's caption and then on WM_MOUSELEAVE the window closes again. somehow this process also increases my program's private working set by 40K (using SysInternals' Process Explorer) Any help would be appreciated.

    Extract from TaskbarItem.cpp :...
    See more | Go to post

  • Thanks for that it just seems that cygwin has let me down again (it just stopped working last time i gave C a go and MingW wouldn't read the NetBeans-generated make file)
    M$ Visual Studio Express seems to have done the trick (darn discombobulatin g compilerators never working for me :'( )

    [This thread can now be closed - i don't know how to though :(]
    See more | Go to post

    Leave a comment:


  • I'm using netbeans 6.1 (i'm java at heart) with cygwin. it seems to have wingdi access. i'll have a go at compiling in MVSE....
    See more | Go to post

    Leave a comment:


  • Thanks for the note on TCHAR (i am quite new to C programming) Have replaced all instances of Char with TCHAR and both variable-length arrays now have array length MAX_PATH;

    Changes:

    27: TCHAR wPath[MAX_PATH];
    43: TCHAR newPath[MAX_PATH];

    However, the original problem still stands.
    See more | Go to post

    Leave a comment:


  • RomeoPapacy
    started a topic Win32 function compile error (GetCurrentPositionEx)
    in C

    Win32 function compile error (GetCurrentPositionEx)

    I'm trying to write what should be a very simple program - a system tray based menu to allow me to quickly access files in a folder (for me a bunch of disc images). Unfotunately i'm stumped near completion.

    Basically the following code fails to compile with this error:

    Code:
    build/Debug/Cygwin-Windows/ImgMag.o: In function `_Z7WndProcP6HWND__jjl':
    /cygdrive/c/***CENSORED***/ImgMag/ImgMag.cpp:87: undefined reference
    ...
    See more | Go to post
No activity results to display
Show More
Working...