Type: Posts; User: VladimirF
Search took 0.13 seconds.
October 12th, 2015, 06:02 PM
Could you load that new image into your program and dump it to another text file? Then see where your RGB values differ.
September 22nd, 2015, 04: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, 05: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, 09:22 AM
Everything you ever wanted to know About Window Classes.
Different processes can register different classes with the same name.
August 18th, 2015, 11: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, 03: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, 11: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, 04:37 PM
What flags are you asking about? Could you please explain?
July 31st, 2015, 03: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, 12:12 PM
Try DebugView at http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
July 31st, 2015, 11: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, 09:04 AM
What do you mean by that:
Isn't it a contradiction?
July 30th, 2015, 10: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, 03: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, 11: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, 04: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, 04: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, 10:03 AM
July 24th, 2015, 10: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, 09: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, 08: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, 05: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, 05:08 PM
Could you please attach the original bitmap you are trying to convert?
July 23rd, 2015, 04:49 PM
Try this in place of your scanning code:
// scan the bitmap
July 23rd, 2015, 11:23 AM
See my post #7 above; not the rocket science.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!