Type: Posts; User: VladimirF
Search took 0.11 seconds.
September 22nd, 2015, 03:12 PM
I don't think it's a missing library; the Exception Code is Access Violation...
Could you try to install the Dependency Walker on that system, load your application there and do Profile -> Start...
August 28th, 2015, 04:48 PM
Is that what you are trying to do? This has nothing to do with hooking window procedure, and even less - with WM_SETTEXT message.
August 20th, 2015, 08:22 AM
Everything you ever wanted to know About Window Classes.
Different processes can register different classes with the same name.
August 18th, 2015, 10:13 AM
I understood that this was not an assumption, but observation.
That is only true for "lazy" system. Try video encoding - it will keep your CPU at 100% for hours...
August 17th, 2015, 02:17 PM
Not sure what you read first - here or there, but could you try QueryPerformanceFrequency() on that CPU? Does it reflect regular or overclocked speed?
August 3rd, 2015, 10:42 AM
I am with OReubens on that: don't use MessageBox() function if you need customization. Just create your own DialogBox and make it as flexible as you need.
There is only one feature of the MessageBox...
July 31st, 2015, 03:37 PM
What flags are you asking about? Could you please explain?
July 31st, 2015, 02:06 PM
I can say that the STATIC child control is not yet created. Are you calling that from your HCBT_CREATEWND? If yes - it is too early. Try HCBT_ACTIVATE.
July 31st, 2015, 11:12 AM
Try DebugView at http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
July 31st, 2015, 10:38 AM
1. Your test is strange: you are trying to create a MessageBox form the hook set on creation of message boxes; looks like infinite recursion.
2. Because of #1 and multiple other reasons, NEVER use...
July 31st, 2015, 08:04 AM
What do you mean by that:
Isn't it a contradiction?
July 30th, 2015, 09:38 AM
SUB is 0x1A, or Ctrl+Z, which sometimes is used as an end-of-file mark.
However, since you open your file as std::ifstream::binary, that should not matter.
Are you sure that your string is...
July 29th, 2015, 02:54 PM
Do you want to NOT count caption and border of the parent window? Then use GetClientRect() instead of GetWindowRect().
Please note: client rectangle is always in client's coordinates.
July 29th, 2015, 10:48 AM
Apparently, the problem is in writing/reading the encrypted string to a file.
What is filewrite()? And is there fileread()?
July 24th, 2015, 03:49 PM
What is counter_Child6++? Where is it defined? How is it initialized?
Did you debug your EnumChildProc2() function? Is it called? How many times? Looks like counter_Child6 is never equal to 6......
July 24th, 2015, 03:37 PM
...unless you call it from the class that is derived from CWnd. In that case, you would need to specify global scope to get the HWND version:
HWND hWnd = ::FindWindow(_T("#32770"), _T("Unable to...
July 24th, 2015, 09:03 AM
July 24th, 2015, 09:02 AM
That's cool, but I wonder if it will be any faster than my last posted code.
This example does pretty much the same thing, but it manipulates region data directly.
July 24th, 2015, 08:48 AM
Oops... I incorrectly used SetRectRgn() function by passing the width of the rectangle instead of its right coordinate.
Here is corrected code:
DWORD p = 0;
int xStart = 0;
July 24th, 2015, 07:52 AM
I might have missed something.
Could you please upload your zipped test project (without Debug/Release folders) here?
What bitmap do you pass to function HRGN RegionbyBitmap(HBITMAP...
July 23rd, 2015, 04:32 PM
This is JPEG (compressed).
Do you have the original BMP image? And what color is used to convert to transparent?
July 23rd, 2015, 04:08 PM
Could you please attach the original bitmap you are trying to convert?
July 23rd, 2015, 03:49 PM
Try this in place of your scanning code:
// scan the bitmap
July 23rd, 2015, 10:23 AM
See my post #7 above; not the rocket science.
July 23rd, 2015, 10:18 AM
Did you profile your code? Do you know which part takes most of the time? Is it Get24BitPixels() or RegionbyBitmap()?
Do you have a lot of transparent pixels in your bitmap?
I assume that most of...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!