====== Software Development ====== ===== Subversion ===== ** How do I un-commit something from SVN? ** If you have the following, and want to remove the commit at r15198 below: ------------------------------------------------------------------------ r15361 | S_CHUDLEY | 2008-11-03 12:39:22 +0000 (Mon, 03 Nov 2008) | 1 line Fixed a bug! ------------------------------------------------------------------------ r15198 | t_song | 2008-10-28 08:30:30 +0000 (Tue, 28 Oct 2008) | 1 line Added some new functionality ------------------------------------------------------------------------ r14582 | S_CHUDLEY | 2008-09-29 16:51:39 +0100 (Mon, 29 Sep 2008) | 1 line Merged in changes from branch ------------------------------------------------------------------------ r13244 | S_CHUDLEY | 2008-07-04 14:52:46 +0100 (Fri, 04 Jul 2008) | 1 line Enhanced logging ------------------------------------------------------------------------ Run: svn merge -r 15198:14582 Check the changes with 'svn diff' then commit as normal. ===== Visual Studio ===== ** How do I break VS code into the debugger? ** __debugbreak(); ** How do I set thread affinity under Windows? ** Where x is the processor ID (zero indexed): SetThreadIdealProcessor(GetCurrentThread(), x) Where x is hex bitmask of which processors the thread can run on (i.e. 0x1 is processor 1, 0x4 is processor 3): SetThreadAffinityMask(GetCurrentThread(), x)) Ensure you have #define _WIN32_WINNT 0x0500 defined before including Windows.h ** How to force use of Winsock2? ** Add _WINSOCKAPI_ to preprocessor defines. ** How to resolve the error 'Cannot open include file: iostream.h' with a VC++ app? ** Add the following before all your includes in your source file: #define _iso_stdcpp_ ** I get the following error running a debug built application 'Failed to initialize (0xc0000022)' ** Ensure the debug DLLs (i.e. MSVCRTD.DLL etc) have the execute permission set. ** How to find pool tags that are used by third-party drivers ** In C:\WINNT\system32\drivers run findstr /m /l tag *.sys