How to add Google test to a c++ project without using a package.
As mentioned in my previous post, to get a ‘proper’ parallel foreach that is async is a bit of a pain So the solution is to write a true async function And you can call it … Of course, you can refine it by adding check for tokens that cannot be cancelled as well as […]
Bad things, bad things happen … explosions, tears … and maybe more In the example above, the code will explode because of the exception.So obviously we will add a try catch block… And that will work, (of course) But what if we want to run an async function in parallel … then what do we […]
I often wonder what the fastest lock is in C#. If course they all have their own pros and cons, but when it comes to raw speed, what is the fastest lock. We have a couple of options, but the common ones are Lock object Semaphore Mutex Read writer lock Read Write The test was […]
How to unit test a configuration file in c#, (example with NUnit but works with any test framework like Miscosoft Test)
This is my own little cheatsheet for powershell C++ and C#
What happens when you call WM_CLOSE and close a window.
Trying to embed Python in you C++ app when the user does not have Python installed will cause a crash.
This shows you how to ‘force’ the correct version of Python, regardless what the user has installed.
To include Google test to your visual studio project you just need to follow the steps below Download Googletest from Github and copy all the file in it’s own folder. You only need the folder called “googletest” other files are for github and so on. Create a library Add a new empty project Right click […]