Category: C/C++ Programming
-
Using make to compile
Explanation: Place this Makefile in your project’s root directory. To compile your project, just run make in the terminal. To clean up the compiled files, run make clean.
-
On Mouse Leave MFC
simple article about how to use ON_WM_MOUSELEAVE leave on a button. The button has to track the mouse while moues move (ON_WM_MOUSEMOVE) is called. Source:https://microsoft.public.vc.mfc.narkive.com/YBQSIfWf/on-mouseleave-and-cbutton-with-windows-xp-desktop-theme
-
Sharing serial ports
To share one serial port among a number of programs. Use socat to create some virtual ports to which the software are going to connect and then use the software below to organize the data flow. Socat command to create interconnected virtual ports: Source code of the data flow software:
-
Cross Compiling From Linux to Raspberry PI
Pre-requirements Before you start you need to make sure the following is installed: apt-get install git rsync cmake libc6-i386 lib32z1 lib32stdc++6 Let’s cross compile a Pie! Start with making a folder in your home directory called raspberrypi. Go in to this folder and pull down the ENTIRE tools folder you mentioned above: git clone https://github.com/raspberrypi/tools.git…
-
Parsing results of a command line
Taken from:https://www.tutorialspoint.com/How-to-execute-a-command-and-get-the-output-of-command-within-Cplusplus-using-POSIX
-
OpenGL Things
Nice tutorials on modern OpenGL version 3:https://github.com/SonarSystems/Modern-OpenGL-Tutorials