PreProcessor Overloading
While it is simple to overload methods in C++, the preprocessor doesn’t work the same way. To define overloaded methods in the preprocessor, we need to define a method for Continue Reading →
While it is simple to overload methods in C++, the preprocessor doesn’t work the same way. To define overloaded methods in the preprocessor, we need to define a method for Continue Reading →
Debugger Configs for MSVC Provides config files which improve debugging with MSVC. When working with STL containers, smart pointers, and boost signals, it is nice to debug directly into your Continue Reading →
Example for invoking back to the main thread in MFC. Some code, including direct UI updates, needs to run directly on the main application thread. When application code becomes increasingly Continue Reading →
When dealing with inheritance, it is possible that the destructors for our objects may never be called if the class has virtual functions, but the base class has a non-virtual Continue Reading →
When updating your repository password, SourceTree doesn’t completely remove the old password. It will continually try both the new and old passwords automatically in the background when trying to authenticate Continue Reading →
While the Pimpl pattern is commonly used to hide implementation and private methods and variables from public interfaces, the common implementations often require a large amount of boilerplate code. This Continue Reading →
If a query is running really slowly in SQLite immediately after you have performed a large number of inserts, the query optimizer may be out of sync. If you run Continue Reading →
When working with custom data structures, the debugger can show too much information layered through how you’ve constructed it. To make it easier to debug, you can create a custom Continue Reading →
We want to run SubWCRev as an automated step in our process so we have the latest SVN metadata included in our executable. This makes it easier to identify executables Continue Reading →
When using Remote Desktop Connection, you can get a popup window asking for your login credentials before a connection to the remote machine is made. When it works, you can Continue Reading →