Type: Posts; User: OReubens
Search took 0.09 seconds.
November 6th, 2015, 07:59 AM
since the table is fixed size, and in eprom (and thus not changing) minimum access would make me think a an appropriate hash based on a linear function would reduce accesses by a lot.
October 27th, 2015, 10:35 AM
The problem with using std::array for this...
you'll be reserving the size of the array in a modifiable memory segment.
and you'll have the actual data in a read-only section of memory.
October 27th, 2015, 10:21 AM
are you sure it's powering down ? or are you seeing drive temperature calibration ?
October 27th, 2015, 10:12 AM
You are quite deluding yourself if you think this makes your program 100% safe from injection.
-There are other ways to inject dlls.
-There are ways to inject code that isn't even in a DLL.
October 26th, 2015, 01:06 PM
IdaPro is a dissassembler that will help you make sense of what a program is doing (assuming you know assembler very well)
but the idapro output isn't typically directly usable as input for an...
October 22nd, 2015, 07:55 AM
I'm getting the impression you're not quite understanding how this works.
you usually only provide the height when creating a font.
if you also supply width, then windows will create a font that...
October 22nd, 2015, 07:44 AM
it's not a bug, it's simply how things are. fread returns a size_t and takes size_t parameters, which on win32 has the range of an unsigned int.
can't fix this without making the code non-standard...
October 19th, 2015, 08:14 AM
You can use CFile which is based on basic windows file access.
don't use CStdioFile, which is based around FILE and fread() (and it's family of functions).
October 12th, 2015, 10:32 AM
A factor is any number that evenly divides the source value without leaving a remainder.
so 12 is the largest factor of 24 because 24/12 = 2, remainder 0.
other factors of 24 would be 8, 6, 4,...
October 1st, 2015, 08:06 AM
You either want to look into hooking the api's the libraries from wireshark (libwireshark or it's lower level version libpcap) or fiddler (fiddlercore) provide. (easiest)
or you want to use the...
September 30th, 2015, 08:18 AM
September 29th, 2015, 08:03 AM
If you were told not to edit a part of the code, than that may have been exactly the kind of problem you were really asked to solve.
When calling other functions in assembly, you Always have to...
September 28th, 2015, 08:34 AM
What you're describing is a logic error. So get your debugger and step through the code monitoring the loop variables and figure out what's wrong.
It's unrealistic to expect someone else to do your...
September 28th, 2015, 08:07 AM
What you're seeing is normal. The fullscreen DirectX canvas cannot be captured via GDI. The explanation for this is simple, there isn't a DC in this case, so there's nothing for GDI to interact...
September 25th, 2015, 07:48 AM
in the top image, the values towards the middle have higher saturation levels.
this is essentially polar coordinates. the hue is the angle (0..255) from the zero line
and the saturation is the...
September 24th, 2015, 09:13 AM
On most modern compilers the switch won't have any sort of speed benefit over a chain of if/else if/else if... Because optimizers have gotten "smart enough" to detect the situation and end up...
September 24th, 2015, 08:48 AM
If your application has NOT been specifically been tagged as supporting High DPI (see Project properties, Manifest tool, Input & output, Enable DPI Awareness), then on a Windows with the screen set...
September 23rd, 2015, 07:53 AM
don't generate them in the first place ?
see this for a possible implementation using STL
September 23rd, 2015, 07:46 AM
No. that's not even remotely what an enum is in either a practical or a semantical point of view.
September 22nd, 2015, 08:52 AM
Rough guess from looking at your code and using rand() (which can't ever return anything > 32K)
1) only the items with low indexes will be properly shuffled, items with high indexes won't.
September 21st, 2015, 12:07 PM
it all depends on that control. if it was not made with large adresses in mind, and it either assumes the high bit of pointers is Always 0, or it internally "abuses" the high bit. It could just...
September 21st, 2015, 12:05 PM
things like this Always end up being about programmer convenience vs performance.
if speed is really your concern. Then low level file IO with your own formatting is going to beat the pants out...
September 21st, 2015, 11:53 AM
standard rand() is a pretty horrible PRNG, that only has a range of 32K (and a period of 32K)
So no matter how you twist and turn this, it can only generate 32K unique numbers at most. You can...
September 21st, 2015, 11:40 AM
While the Standard library is important, I wouldn't call it "most important". You can get a lot of real work done without using the standard library, and if you're using a framework like MFC, you...
September 17th, 2015, 07:55 AM
if you want a library (or a dll) to have a specific specialisation of a template availble to link to, then you need to explicitely instantiate the specialization. and make sure this instantiation is...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!