Type: Posts; User: macabre13
Search took 0.01 seconds.
Maybe you forgot to initialize the CriticalSection ?
March 31st, 2009, 09:37 AM
That's the way I will follow. But I was hoping for sth more tricky ;)
Thanks for help.
March 29th, 2009, 04:55 PM
OK, good to know that.
BTW maybe you know why, when I'm creating the listbox from a scratch the size of item fonts are bigger that the ones used in original listbox.
Where or how change the size...
March 27th, 2009, 10:41 AM
I'm trying to change the sorting/not sorting style of listbox in runtime.
HWND hListItemsList = GetDlgItem( hDlg, ID_DLG_ITEMLIST );
DWORD style =...
January 29th, 2009, 02:20 PM
OK. I will look for that book. Thanks!
January 29th, 2009, 08:13 AM
The problem was that I was unable to understand why some other loads my .dll.
But I have think it over and now I do understand this way:
*) I register my hookProc in system and let it run.
January 29th, 2009, 03:36 AM
Try this one:
January 29th, 2009, 03:33 AM
Now it works with this #pragma's. I don't know how and why this works. But I will investigate this. Any way thanks a lot.
January 28th, 2009, 03:42 AM
So I did some test and:
On win xp32 with 32bit .dll my application works in 50%:
I'm able to set hook, get the message and prevent other application from receiving it. But after loosing focus my...
January 27th, 2009, 01:59 PM
Hi thanks for reply.
Is there a way to hook both 32 and 64 bit? Should I implement and call SetWindowsHook from 32 and 64 bit build dll?
gModule is taken from dllMain whe .dll is being loaded....
January 27th, 2009, 07:58 AM
Are you sure that yours answer help me somehow?
Maybe it is a mistake when ctrl+c/v but like I said it works when windows has the focus. So looks like I compiled my code before and simply paste...
January 26th, 2009, 05:17 PM
Good evening :)
I've search a lot of forums but did not found any answer to my question. So here I post it.
I'm trying to set hook to keyboard to receive all multimedia keys notification, for...
June 12th, 2008, 02:21 AM
If I'm not wrong, you're looking for:
You can try achieve this by implementing your own memory manager and overloading new operator.
ZeroMemory( &chFont, sizeof( CHOOSEFONT ));
chFont.lStructSize = sizeof( CHOOSEFONT );
chFont.hwndOwner = aParent;
I would rather say
// some dangerous code
catch( ... ) // this should catch ANY exception
cout<<" tra la la la la la la la"
How to write simple disk driver? :>
Yes and it failed.
I was able to add it to my network place, but not mapped as localdrive.
How ever I did search the net, and found some apps that can do that. Unfortunately I think that those...
I'm trying to map some ftp folder to local windows drive. Since it is not a normal local resource mapping, and all my attemps to use WNetAddConnectionX fails. I fail have no idea, how to do...
@Red Squirrel - if you find the solution, please post it here ;)
I think that so long as it's not managed code, there isn't way to self debug and self fix code. And like Lindley said, in my...
April 17th, 2008, 02:17 AM
Hi, IMHO thats not to bad as it looks ;)
You could try also something similiar:
catch( DB_Exc& e )
April 14th, 2008, 02:09 AM
Next delete on second pointer should caous an exception. That why people discover smart pointers or auto pointers.
January 24th, 2008, 03:32 AM
0xcdcdcdc8 <<--- im most cases this is an uninitialized variable memory pattern!
January 5th, 2008, 01:06 PM
Quote from MSDN2k7 april:
Check for proper STYLE value in msdn.
December 5th, 2007, 06:10 AM
And a little code
TCHAR drive = TEXT("");
TCHAR letter = TEXT('');
TCHAR _out = TEXT("");
DWORD _outSize = 256;
BOOL result = false;
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!