C++

Creating a break point that hits on calling win32 api

Create a break point that hits when CreateProcess was called Enter a Function Breakpoint Enter {,,kernel32.dll}CreateProcessW in the textbox labelled…

4 years ago

Basic usage of unique_ptr and custom free of it

#include #include #include #pragma comment(lib, "Shell32.lib") using namespace std; class MyClass { public: MyClass() { cout

5 years ago

Visual Studio’s resource editor fails to open a Form because the class is not the first class in the header file (C++/CLI)

Suppose you have a following header file and tries to open it in the resource editor of Visual Studio. namespace…

6 years ago

CMake could not find boost

Create a new CMakeFiles.txt below in a new folder. cmake_minimum_required(VERSION 3.7) set(Boost_DEBUG 1) set(Boost_DETAILED_FAILURE_MSG 1) set(Boost_INCLUDE_DIR Y:/L/boost_1_53_0) set(Boost_LIBRARY_DIR Y:/L/boost_1_53_0/lib) set(Boost_USE_STATIC_LIBS…

7 years ago