Type: Posts; User: OReubens
Search took 0.15 seconds.
Don't use ShowWindow() during the handling of WM_PAINT
I'm not even at all sure what you remotely think the above code is going to do.
Why are you not using the dc from the paintstruct ?
See https://www.ietf.org/rfc/rfc2046.txt for the RFC.
In one of our projects we are receiving data from an external source, preprocessing the data and per mime type allowing customers to define...
January 28th, 2015, 12:47 PM
Also, people don't have problems with "the STL " having code in the .h (beside it being needed since it's templates) because... most people don't go make changes to the code parts of those headers...
January 28th, 2015, 12:43 PM
define "the same way"...
Note that a lot of OS apps (like IE) do not use the normal windows Menu system but instead have their own drawn menu's.
January 28th, 2015, 07:54 AM
2^500 or about 3.27 x 10^150 is hugely larger than the current estimate for the atoms in the univers which is estimated at about 10^80 atoms (assuming all mass would be hydrogen atoms). Some mass...
January 28th, 2015, 07:44 AM
that's beside the point really.
THe same problem still exists.
changes to the implementation, change the header, causing everything dependant on the header to need recompilation (even though no...
January 27th, 2015, 08:20 AM
TransparentBlt does a colorkeying blit, that isn't exactly the same as "transparency" but ok, some people call it that... The important thing to note is that it is only "transparent" (keyed) on the...
January 27th, 2015, 08:04 AM
Lets take class header myclass.h and it's implementation myclass.cpp
the world best C++ designer made that class and everyone in the entire world agrees it's a shining example of C++ perfection....
January 26th, 2015, 08:11 AM
Windows GDI doesn't do transparencies other than what you explicitely provide (color keying, masking, ...) for.
if you mean alpha transparencies, that only happens when using AlphaBlend() (as...
January 23rd, 2015, 07:55 AM
you are trying to map 20GB of memory ???
January 23rd, 2015, 07:51 AM
You can if you cast either side of the terniary.
Without a cast, the compiler is left in the dark as to your intention. (even though you could argue that it should be smart enough to figure out you...
January 21st, 2015, 08:24 AM
January 21st, 2015, 08:16 AM
No, I said that the apparent method in the OP will make a clock that shows something looking like time, but it'll acumulate small errors and eventually be off by several seconds.
January 21st, 2015, 08:05 AM
Nope, what I meant is that it won't work...
There is time going into the code to draw the hands
a Sleep(X) will not give you an EXACT X amount of sleep, it'll be as close as the system can give...
January 20th, 2015, 08:07 AM
Sorry, no, you haven't.
Class design hasn't even anything to do at all in this matter. You can have the best possible design in the world, and have compilation sessions take hours simply because...
January 20th, 2015, 07:51 AM
you cannot possibly make a visible clock by.
drawing the time
wait 1 sec
draw the Original time +1sec
wait 1 sec
draw the Original time +2sec
as the orinal question seems to...
January 19th, 2015, 08:16 AM
ODR issues aside, which is a "local" (per project) issue.
the main reasons are as I said for more properly managing huge projects containing of compiling multiple libraries and/or binaries....
January 19th, 2015, 08:05 AM
A lot has changed from VS2003 to 2013.
many containers not only have different parameters/return types on their members , but also behave differently.
You should consider proper code revisions...
January 19th, 2015, 08:00 AM
the compiler gets confused because...
it looks like you're defining AStar_NS as a class (it has members and a 'private' declaration in it), but sait it was a namespace
change to code so it's a...
January 19th, 2015, 07:50 AM
explaining it is easy...
instead of the normal type messageloop:
while(GetMessage(&Msg, NULL, 0, 0) > 0)
January 16th, 2015, 07:50 AM
unless you really really have to. :-)
January 15th, 2015, 08:28 AM
Are you just trying to find the average time/steps ?
if you're going linear (numerical next) than the average will be N/2 where N is the number of items. (worse case is N-1)
if you're going only...
January 15th, 2015, 07:57 AM
and you can do the same in C++. Though it may not Always work as you planned because of how the compiler searches for includes.
January 15th, 2015, 07:54 AM
the 'normal' behaviour for a messageloop is to loop around geting and processing messages.
if you make a more elaborate loop, you can do "background" processing while still handling the window....
January 15th, 2015, 07:48 AM
1) you need to enable mouse events.
2) z, the index into the inputrecords buffer, isn't being initialized or set to anything.
3) you are not checking if the event is in...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.