CString anotherstring ;
anotherstring =mystring;//memory corruption!!!
TCHAR* string = (TCHAR*)(LPCTSTR)mystring;
TCHAR seps = "_";
token = strtok( string, seps );
while( token != NULL )
token = strtok( NULL, seps );
//Now both strings will be changed.Because both CString::m_pchData are pointing to the same memory and strok/wcstok changes it. If you want 'anotherstring' to remain unchanged do
Most linux distribution comes with the Nouveau https://nouveau.freedesktop.org/wiki/ display driver configured. If you need to use NVIDIA...
OpenLayers Advanced Clustering and Setting dynamic images for OpenLayer Styles via Ajax JSFiddle Source for this Tutorial Let...
For easily monitoring the JVM metrics there is no better tool than Java VisualVM or its older counterpart JConsole; These two tools com...
I have a tendency to choose the exact wrong thing every time when given a choice; I have sometimes wondered why. A good thing with doing ...