Type: Posts; User: OReubens
Search took 0.10 seconds; generated 55 minute(s) ago.
You can reduce O(n²) to O((n-m)²) (with m being [0..n]) with a setup stage. With a large value of n, even a small value of m can make a huge difference in runtime.
the problem can't be further...
Please tell your instructor/teacher he is an idiot.
Tell him I said so.
And tell him to come here to come explain in what even remotely realistic setting this is ever going to be an actual need.
you're only getting yourself into problems with that type of model.
It's easy to work around. One method: prevent local copies (make the constructors private) and have a static object creation...
memory overwrites are among the hardest to track down bugs. It can literally take days/weeks to track it down to its origin.
there is unfortunately no easy solution.
Tools like Dr. Memory can...
If your development involves a lot of interfacing to COM, other .NET objects, custom UI's or rapidly changing user needs ... THen managed languages have a definate benefit.
If your development is...
Haven't noticed anything unusual since moving to Win8 (and I do some pretty funky dev stuff :p)
just VC should be enough for something as simple as this. it's all going to be user mode anyway.
Just connect to the symbol server and you'll get most of the API stuff at least, even if you're...
and by extention, a VM can't even begin to provide decent timing, not even at the kernel level because the overarching OS that the VM lives in will time-schedule the VM (including the VM kernel).
I guess you can discuss meaning here, but it definately is not technically nor semantically a kernel object.
Yes, it is ultimately backed by the kernel, but under that definition you could also...
a window/dialog does not need to be a child from the browser window
and alternatively, it may not be a dialog at all and not use child controls to do input.
it can even use regular editcontrols...
The macro has a m4exit(255) or m4exit(-1) somewhere ?
or you'll have to explain more detailed what you want to get.
December 6th, 2013, 09:41 AM
you're getting a "NAN" (not a number) value as result of your calculation.
That means you're making a calculation error somewhere.
December 5th, 2013, 08:46 AM
what is the difference between hang and freeze ? They're the same to me.
A memory corruption bug that happened 10 minutes earlier during program initialization.
December 5th, 2013, 08:13 AM
>.< Can't any programming educators make any exams that aren't made of this much fail in only so many lines of code...
1) The code has a bug (a memory leak). Ok, this might have been omited...
December 5th, 2013, 08:04 AM
Could load powercfg in a debugger, set a breakpoint on DevicePowerEnumDevices, and see how it's called (if at all).
December 5th, 2013, 07:56 AM
This isn't correct either, while there are quite a few "lazy" services that are written as console exe's and rely on svrany.exe to actually behave like a service, a service is really something else...
December 4th, 2013, 08:13 AM
If you are allowed to sort A, B and C then yes, you can maybe find this in fewer steps by eliminating impossible values in A, B and C.
Technically possible without sorting as well but the...
December 4th, 2013, 07:55 AM
A car drives down a hill
suddenly the breaks stop working
the car continues driving down the hil because it has no means to stop
at the end of the downwards hil it continues to roll through...
December 4th, 2013, 07:46 AM
1) your code doesn't list this, are you sure you have set index to zero prior to calling DevicePowerEnumDevices ?
2) You're filtering on present devices only, are you sure the 2 missing devices...
December 2nd, 2013, 08:20 AM
Drawing on top of the desktop won't reliably work if you're using windows desktop composition modes (pretty much enabled for everyone these days). ANd it'll behave strangely on multimonitor setups....
December 2nd, 2013, 08:06 AM
if the view is the active view:
CFrameWnd::GetActiveView(), test the result with IsKindOf() and cast to the view type you need.
December 2nd, 2013, 07:44 AM
When interfacing C++ and asm, the asm code needs to adhere to the rules set by the C++ compiler.
Since this is VC++ Win64, all your routines that interface to C++ need to follow the Win64 calling...
November 29th, 2013, 08:12 AM
it still means you have a bug somewhere. it could be anything. common reasons why something works in debug but doesn't in release is:
- variables not being initialised (or differently) in debug or...
November 29th, 2013, 07:54 AM
you can make your own mouse pointers and tell windows to use that mousepounter when the mouse is over a particular window. that's the normal way to do such things.
Like GCDEF said. See...
Click Here to Expand Forum to Full Width