How would I insert a string into an edit control at a specific location (the
current location of the caret)?
1. CEdit insertion point - VC MFC
2. Non-locale-specific floating point numbers
I want to write some C# that converts between floating-point numbers and strings in a non-locale-specific way. That is, I want decimal points always to be ".", etc. The simple overloads of Double.ToString() and Double.Parse() change their behavior depending on locale. I'm considering creating a static en-us locale and passing it to the overloads of Parse and ToString that take a locale, but is there a better way?
3. writing to a specific point in an array file - CSharp/C#
4. breaking at the exact point a variable is assigned a specific value
how do I break at the exact point a variable is assigned a specific value? thanks
5. Efficiently reading a string from a specific point in a file
6. Checking if iterator points to a specific element
Hi
I'm traversing a std::list backwards with a reverse_iterator, and need
to check for the case when the iterator points to the first element of
the list.
My code now looks something like the code posted below. This usually
works a few times, but then gives me a segmentation fault, apparently at
the line "if (pos == --(the_list.rend()))". Shouldn't that always be
valid, as long as there is always at least one element in the list at
the beginning of the loop? Is there a better way to check if the
iterator points to the first list element?
list<MyClass*>::reverse_iterator i;
for (pos = the_list.rbgin(); pos != the_list.rend(); /**/ )
{
if (pos == --(the_list.rend())) /* Is this not always valid? */
{
// Do something with *pos
the_list.clear();
pos = the_list.rend();
}
else
{
// Do something else with *pos
++pos;
the_list.erase( pos.base(), the_list.end() );
pos = the_list.rbegin();
}
}
7. Disable editing of one specific cell in one specific row in dataGr - CSharp/C#
8. How to run specific thread on specific CPU
Hello, I'd like to know about how to run specific thread on specific CPU. I know I can use ProcessThread.ProcessorAffinity. But I can't understand that how I can map my Thread object to ProcessThread-Class. --- ThreadStart ts = new ThreadStart(myThread); Thread th = new Thread(ts); th.Start(); --- In this case, how I can map th to ProcessThread. Could you provide me sample code? //Best Regards, //to.iijima