Type: Posts; User: VladimirF
Search took 0.11 seconds.
December 11th, 2014, 04:20 PM
I would add a sound of a type-writer and randomize the pause in a range of 100..400 ms. :)
December 11th, 2014, 03:59 PM
Well, sub-item number 0 is the item itself.
So to set the first sub-item's label - you pass 1; that's what they mean by "1-based".
December 10th, 2014, 04:04 PM
Who is looping???
Your code from post #1 searches ONCE for each value in array2, always from the beginning of array1.
BTW, which one of them is "a" and which "Arr"?
December 9th, 2014, 02:43 PM
May I offer few suggestions before you go any further? It will make the process easier.
1. After you defined this:
const int SIZE = 20;
I would expect NOT to see any 20s in the code. But there...
December 3rd, 2014, 10:23 AM
Just browsed the titles.
SEO in action? :)
December 2nd, 2014, 01:36 PM
Are you suggesting to re-implement std::unique?
December 2nd, 2014, 10:16 AM
Let me rephrase what Igor wrote earlier.
Look at your code:
Your variable 'c' is constructed and then immediately destructed when it goes out of...
November 24th, 2014, 04:52 PM
One general suggestion: NEVER use MessageBox() for debugging purposes, especially for key up and down messages.
Instead, use OutputDebugString() and see the results in your debugger's Output window.
November 19th, 2014, 01:15 PM
If I understood your question, you should either clear yout tres in the loop, or just move its declaration into the do-while loop.
November 17th, 2014, 01:20 PM
I would imagine that all the time will be spent in recset.Open(), and navigating the recordset is instantaneous.
If you observe the delay in navigation, your database is likely being updated at the...
November 14th, 2014, 09:37 AM
Sure, but I thought it was more of a BS than BTW :)
November 13th, 2014, 03:44 PM
Where can one get such a job? What does it pay? How do you get the data - in the mail? How to you provide the results?
November 13th, 2014, 02:30 PM
I understand that. Just pointing to while OP was about performance of the file reading, 85% of the test is spent in the std::string...
How about we will simply count line breaks?
Oh, I see....
November 13th, 2014, 01:00 PM
Could you please explain this technique?
It appears to be an attempt to optimize std::string construction from a char* and pushing it into the vector - right?
My test doesn't show any improvements....
November 13th, 2014, 09:48 AM
Third-party profilers might cost you more than a Studio upgrade.
There is no substitute to a profiler.
Given your limitations, I see two options:
1. Manual profiling. In your outermost function,...
November 11th, 2014, 03:01 PM
No, it reads exactly as many bytes as you ask it to (in fourth parameter).
November 11th, 2014, 02:18 PM
Where does it crash? And - how? Out of memory? Access violation?
November 11th, 2014, 01:52 PM
Whose message is that?
Google knows nothing about "RangeChecks instrumentation code detected an out of range array access"...
Is it produced by one of your AI modules? :)
November 10th, 2014, 09:27 AM
So, you pass an uninitialized pointer to CreateTextFormat() function?
Access violation is the BEST result in that case.
November 7th, 2014, 05:01 PM
What is TextFormat?
hr = DWriteFactory->CreateTextFormat(L"Script",
November 6th, 2014, 02:33 PM
The memory pointed to by that pointer is likely managed by that library's memory manager (different from yours), so for you it is an opaque "handle".
Why do you need that size? Curiosity? Are there...
November 5th, 2014, 01:27 PM
I would go for an all-integer solution. For example, using lowest common denominator. Or any common denominator.
November 4th, 2014, 02:27 PM
Three, so far:
1. Move this to the appropriate forum.
3. Check the return values from API calls.
November 4th, 2014, 02:21 PM
Or OP might be thinking about http://en.wikipedia.org/wiki/Predictive_text... Or crystal ball?
November 4th, 2014, 02:04 PM
What is ro and col here?
cout << " " << setw(4) << mb[ro][col];
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.