Type: Posts; User: VladimirF
Search took 0.11 seconds.
October 20th, 2014, 03:52 PM
I'd go one step further: get control's ID then pass HIWORD(wParam) to that control's handler, unparsed.
July 31st, 2014, 10:49 AM
in the WindowProc of the inst->hWnd?
June 26th, 2014, 08:08 AM
In addition to zerver's suggestion, MFC App Wizard can create that for you in a few clicks.
June 24th, 2014, 04:35 PM
Make sure you are in Debug configuration.
Place the cursor on your line:
GainExTimeF = SettingsTab.ModeCustom(k);
and hit F5.
When you "break" into debugger, use F11 to step into the function...
January 27th, 2014, 04:25 PM
So you plan to write variable-length records to a file? Then recycling becomes tricky. If you want to avoid copying entire multi-gig file, you would have to replace records in-place, dealing with the...
January 27th, 2014, 01:58 PM
May I do a little math?
20 packages per sec at 3MB a piece is 60MB of data per second.
This is 3,600MB per minute, or 360GB for a 100 min you want to keep your data (not 50GB).
What kind of...
January 27th, 2014, 11:32 AM
Are your radio buttons BS_RADIOBUTTON or BS_AUTORADIOBUTTON? I would suggest - BS_AUTORADIOBUTTON. Then, as GCDEF stated, you won't need SetCheck() calls.
I also suggest to set the next control...
January 23rd, 2014, 05:02 PM
This is actually a white brush; hard to see over the white background :)
You should restore the mode just like you did the brush:
int iOldMode =...
January 17th, 2014, 09:50 AM
I have another crazy idea. Could it be that your IO requests to that NAS were so sparse that it was getting to the stand by/sleep mode and had to wake up for the next IO? That could explain your...
January 16th, 2014, 09:38 AM
Oh, I so much agree with OReubens - was going to post almost the same opinion.
Are you 100% sure in your assessments? I am just sooo skeptical that that parallel execution can get you a 30 times...
December 26th, 2013, 09:47 AM
You don't need that many global variables (that is, if you need any).
For example, your "hSomething variables" are only used in LoadPlayerData(), so they could be locally defined in that function....
December 23rd, 2013, 10:15 AM
...but you can't pass a Variant to a function that takes string, unless it has string cast operator.
I am not really sure what OP wanted.
December 20th, 2013, 03:29 PM
But this code (#26) doesn't have string() operator!
December 20th, 2013, 02:22 PM
Are you sure? I am not on VS 2012 (have 2010 at the moment), but I get:
for that line:
December 20th, 2013, 02:15 PM
Right. I missed that. I guess the point was not strong enough :)
December 20th, 2013, 02:06 PM
OnSizing is more like notification: there is no way to prevent that sizing.
I would use WM_WINDOWPOSCHANGING message and modify WINDOWPOS structure to maintain aspect ratio.
December 20th, 2013, 01:41 PM
I am surprised that no one commented on that cast. It is NOT nice at all!
c_str() returns a constant pointer, but your cast operator is casting constness away. That allows caller to modify string...
December 12th, 2013, 02:22 PM
What is your Status? Is it a dialog? It is not enough to construct dialog object, you need to create its window.
December 12th, 2013, 02:07 PM
Could you please clarify: if *ANY* of the files are locked you will not move the other ones too?
In that case you would have to lock the files yourself, or else they might get locked after your...
December 11th, 2013, 11:20 AM
I don't think that this is true, honestly.
The "imprecision" of timers in Windows is about fraction of a second, NOT 1-2 seconds!
I am not familiar with virtual machine timing issues, but aren't...
December 6th, 2013, 03:42 PM
I would like to suggest further improvements.
This and a few more similar fragments may be called "entrapment" :)
If you know the valid range of values, why not to include it in the FIRST prompt?...
December 6th, 2013, 02:48 PM
I have never in my 30+ years in software development seen this original style of curly braces placement!
Also, what would that code do if D is greater than 3.500?
December 6th, 2013, 02:17 PM
I can suggest two ways to handle that.
1. Register for WM_MOUSELEAVE message.
2. Capture the mouse by using SetCapture(); release the capture when mouse leaves your window. Note: you would have to...
December 6th, 2013, 09:02 AM
This code says that its coder didn't know how to use strings in C#.
December 4th, 2013, 10:21 AM
I feel a need to share one of my favorite quotes:
My point is: we are looking for an issue in one piece of code, while the issue is in another...
You mentioned multiple threads. Do more than...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.