Type: Posts; User: zerver
Search took 0.06 seconds.
August 25th, 2014, 09:47 AM
That sounds like homework to me.
Most people around here will not help you with homework unless you have a very specific question.
However, you should read your course literature about structs...
August 25th, 2014, 08:59 AM
As a newbie it is better to just try to find a project that interests you. Copy the source and play around with it.
Only after you have gained significant experience should you try to contact the...
August 25th, 2014, 08:49 AM
If the strings are already in your vector and you want to change nothing, try std::sort().
However, you could also replace the vector with a std::set, which is automatically sorted....
August 25th, 2014, 08:36 AM
The dotted rectangle is called focus, while the blue stuff is your selection as you already pointed out.
You use this function:
August 25th, 2014, 08:31 AM
S::I() is a function and you can't watch the return value of a function.
So you have to workaround. For example, in this function where you create the singleton, also assign it to a global...
August 14th, 2014, 09:08 AM
August 11th, 2014, 10:12 AM
Messages is the best way, since other solutions would require polling (periodic testing) which makes your program ugly and inefficient.
But... why don't you let the worker thread itself delete...
July 10th, 2014, 09:00 AM
Alright, well then use the _T macro anyway just to be sure, and rewrite the code a bit to rule out the possiblilty of corruption...
CString test = dadir;
test += _T("\\*.csv");
thepath = test;
July 10th, 2014, 08:28 AM
I'm not very experienced with unicode, but IIRC you have to prefix the string constants with "L".
thepath = dadir + L"\\*.csv";
Does it make any difference?
Like kaud said, you need to devise the mathematical formulas that calculate the number of stars and blanks for any given row number.
When you have done that, it will be easy to deploy a few loops...
June 30th, 2014, 04:04 AM
You don't need 16 triangles if it is okay to overlap them. Use two triangles to make a rectangle that touches two opposite sides of the octaton.
Make another such rectangle rotated 45 degrees to...
June 26th, 2014, 07:43 AM
If the "big" view will always be visible, then I suggest instead to make a dockable panel, similar to what you find in many apps such as Visual Studio.
June 17th, 2014, 04:17 AM
Good points, but here I cannot agree. A lock held for a long time may indicate a design flaw. These typical producer/consumer scenarios where one of the parties cannot work because the other holds a...
June 10th, 2014, 04:01 AM
Lock-free is the ideal, but hard to realize in practice. What you want is a solution that very rarely locks, and when it does, the locks are held for just a few instruction cycles. Also, you'd maybe...
Also there may be performance reasons. std is fast, but not in every case.
hello, you don't need to write any program. use command tac -r --separator="." file.txt
I was going to say the same: if your view loses focus when you alt-tab twice there is probably something wrong with the rest of your code.
Basically, the app should come back up without any focus...
One more typical characteristic of SSD is that erasing the disk (by overwriting it with zeroes) will be hundreds of times faster than if you would write random data.
The reason, IIRC, is that the...
I think getting a 100% working method will be either impossible, or would require such lengthy diagnostics that anyone using the program would ragequit.
* Some drives are actually hybrid drivers...
Writing a sound driver... I don't think you should reinvent the wheel...
Maybe have a look here: http://www.portaudio.com/
You should be able to use the recording API pretty straight off, but the device must also support so called "Stereo Mix", which you can read about here:...
Yes, what I mean is that you should look at how the Polygon class is designed, and then make your own class, very similar to the Polygon class, but of course using fl_arc.
Example here: http://www.codeguru.com/cpp/g-m/bitmap/article.php/c1741/Writing-a-window-image-to-a-BMP-file.htm
Have a look here: http://www.stroustrup.com/Programming/12_display.ppt
Apparently there is a "Polygon" class in FLTK. Take a look at the source code of the Polygon class, and try to design your...
Maybe a DLL file is missing, try installing Visual C++ 2012 redistributable package from Microsoft.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.