Type: Posts; User: VladimirF
Search took 0.10 seconds.
February 18th, 2015, 04:55 PM
Really? That doesn't sound right. In fact, I did the suggested test (pressing E, C and U keys in the Notepad) and got all the characters OK, as expected.
The article explains how the keyboard "might...
February 18th, 2015, 02:20 PM
I would agree with you, 100%. Kinda… If we were comparing these two scenarios:
char* buffer = new char[some_length];
Mainly for two reasons:...
February 17th, 2015, 04:01 PM
Your "magic" with HWND was already commented on.
You start with char* in your Dump(), and you need LPCTSTR for m_listbox.AddString(); wrapping it into CString just to attach to a message is...
January 18th, 2015, 11:45 AM
FeinSoftware presents FeinWindows version 2.0 - replacement windows manager for Microsoft Visual Studio 2012 and 2013.
Please visit http://www.FeinSoftware.com/FeinWindows for more details.
January 12th, 2015, 01:41 PM
That function would have to be called from the UI thread only - right?
January 1st, 2015, 10:08 PM
I invite your question, comments, suggestions, requests for other tools for Visual Studio, etc.
Please visit my forum at www.feinsoftware.com/FeinForum and my page at www.facebook.com/feinsoftware
December 30th, 2014, 05:13 PM
It looks like a lot of effort (and typing) went into text processing when there is an easier way.
Look at your numeric keypad. Does it look like a tic-tac-toe board? Here are your commands:
7 8 9...
December 26th, 2014, 03:07 PM
FeinSoftware presents FeinDateTime version 2.0 - development tool for Microsoft Visual Studio (Visual C++ Debugger).
FeinDateTime is an expression evaluator for COleDateTime, COleDateTimeSpan,...
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?
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.