Type: Posts; User: OReubens
Search took 0.19 seconds.
August 28th, 2015, 07:29 AM
memory mapped files won't do you any good unless you create both programs or you inject code in the process that isn't yours.
even in that case you still need to rebase any pointers because the...
August 27th, 2015, 07:06 AM
if you don't change anything, then the printer is set to MM_TEXT mapping mode, which means your coordinates are printer pixel coordinates since printers are typically considerably higher DPI than a...
August 26th, 2015, 07:23 AM
And I corrected you. Sayign it doesn't, and that's exactly how it's supposed to be.
BeginPaint() does not EVER under any surcumstances erase or paint anything.
BeginPaint causes an...
August 26th, 2015, 07:06 AM
They work like oldschool modems.
So any reference you find on modems will work for you.
a modem (wifi device) is either in command mode in which case anything you send to the modem is...
August 25th, 2015, 07:59 AM
Topology, trigonometry, coordinate transformations/projections, cartography. In various amounts depending on what you actually want to get at.
August 25th, 2015, 07:55 AM
like I said, neither WM_ERASEBKGND nor WM_PAINT actually do paint anything at all unless:
* you're using the default handler for WM_ERASEBKGND (or calling DefWindowProc in that case), which...
August 25th, 2015, 07:37 AM
you have a map with AStarNodePair* as key, so it compares pointers, not object instances. You can't overload member comparison with a pointer, because there is never a AstarNodePair-pointer-class...
August 25th, 2015, 07:21 AM
if all your changes are the same, apply it through the interface once, then copy/paste.
if the changes are different on each template, then. I gues you're stuck with doing it via the interface.
August 25th, 2015, 07:18 AM
Without having an exact description of what each of those does...
I would say those timeframes are extremely optimistic.
August 25th, 2015, 07:07 AM
WM_SETTEXT (and many other windows messages) do NOT send data such as strings, structures, ... THey only send pointers to data.
Pointers from one process have no meaning in another process. So...
August 25th, 2015, 06:57 AM
the issue you describe is highly indicative of being a latency issue.
ANd that in turn is a result of having your app designed as a sequence of blocking events.
start query, wait...
August 25th, 2015, 06:45 AM
Instead of adding the new formatters tot the list of formatters in the config object, I am now inserting them at the front of the MediaTypeFormatterCollection.
August 24th, 2015, 03:26 AM
WM_PAINT does not, EVER erase the background on it's own.
neither does WM_ERASEBKGND for that matter. it's the default implementation of WM_ERASEBKGND that does. if you override and return 0,...
August 21st, 2015, 09:05 AM
and this is what I've been saying all along. use a SINGLE paint to screen.
in the previous ones you still had
-> paint everything black
-> paint image on top of black
put that in...
August 21st, 2015, 08:54 AM
not in a position to actually try this atm, but knowing petzold, he's probably spot on.
1) WM_PAINT isn't usually "sent" or "posted" to a window, but is rather a flag in the message queue that...
August 21st, 2015, 08:47 AM
if you know what you're doing...
Open the .rc file as source, and edit it as text. other than that. Nope.
August 21st, 2015, 07:25 AM
No, I'm saying you need to LOOK UP the actual prototype for this function and match it accordingly. I only made some suggestions where there are likely mismatches, but it's entirely possible that...
August 21st, 2015, 05:22 AM
I have a Web API 2 based webservice
it has a lot of API's returning various types that all get returned via the normal xml and json formatters.
ok so far.
I have a couple api's that return a...
August 20th, 2015, 09:16 AM
yes, but that may or may not cause correct painting... painting the background may be a necessary process. Failure to erase the background can cause "old stuff" to remain on screen and not go away....
August 20th, 2015, 08:57 AM
using break to exit a loop and return right away is a clean design approach. If the style guide objects to it, maybe you should ask your team WHY it's a bad thing.
Dragging conditionals into your...
August 20th, 2015, 08:47 AM
Also quite "easy": you cannot use a platform SDK that predates Win64 to produce Win64 code.
Update to a newer platform SDK (might be tricky to find one that will work on an older compiler)....
August 20th, 2015, 08:43 AM
difficult to be sure. assuming i is of type int... (could also be a 64bit int or a 16bit int, adjust the code to match the type of i)
i = static_cast<int>(dValue+dValue+round_to_nearest) / 2;...
August 20th, 2015, 08:32 AM
you need to use the right function prototype when in Win64.
The one you use here appears to be tailored to Win32. In Win64 pointers are 64bit pointers, and values like DWORD and LONG are typically...
August 19th, 2015, 07:49 AM
just fyi, "automated testing" is not a tool that will start your app and figure out all on it's own how to use that app then tell you where your app is failing.
even with automated testing, you...
August 19th, 2015, 07:41 AM
that is what templates do... decide the actual types AT COMPILE TIME.
You seem to want to decide the type at runtime. That would require a type that can store one of many types, akin to the COM...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!