Reusing Headers and Source Code in C++ @WhatsACreel
Reusing Headers and Source Code in C++  @WhatsACreel
Uploaded November 2014 | Updated September 2026, 2 weeks ago
Today we'll look at a technique for reusing source code in C++ with Visual Studio. This video is intended as an answer to a question I was asked by a viewer.

When we're introduced to headers, class hierarchies and many other mechanisms in C++, we're told that they allow for code re-usability. And yet, when we add headers and CPP classes to our projects, they are largely tied to the projects. They are not reusable because they're stuck in the middle of a single project.

We're not often shown how to reuse code, we're only told that we can. It's one thing to say that you can reuse a header in 10 different projects, it's another thing to describe how. This video is a practical description and demonstration of how to reuse headers and CPP files in multiple projects.

This is not a video about using binary libraries, like linking to "obj" files or importing DLL's. This is a video about reusing uncompiled code so we can create a source engine which we can import and update in as many projects as we need.
Reusing Headers and Source Code in C++Direct2D Tutorial 8: Loading an Imagex64 Assembly Tutorial 61: AVX Negate 128bpp ImageNVIDIA CUDA Tutorial 5: Memory OverviewC++ Tutorial 24: Stringizing and ConcatenationFloating Point Bit Hacks Every Programmer Should Know (Including Fast Inverse Square Root - Quake)Answering Basic Assembly Language Questions - Assembly Language for BeginnersAre CPUs Getting Faster? (2009 AMD Phenom II vs 2018 Intel i7 8750H - Phenom 2 Benchmark)Direct2D Tutorial 6: Real Time Game LoopFixed Point Arithmetic 1: Intro to Fixed PointC++ Tutorial 5: While and Do While LoopsC++ Tutorial 10: Pointers Explained (Linked Lists vs Arrays Example)
Creel |

Reusing Headers and Source Code in C++

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER