This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.9) | |
# Proeject name - should not contain whitespace | |
project(OpengGL_CPP) | |
#========== Global Configurations =============# | |
#----------------------------------------------# | |
# Set the C++ standard for all targets (It sets the flags | |
# (-std=c++11, -std=c++14 ...) on Clang or GCC. and /std=c++17 on MSVC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.dll | |
*.exe | |
*.obj | |
*.so | |
*.bin | |
*.zip | |
*.7z | |
*.exp | |
*.lib | |
.vs/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File: winprocess.cpp | |
// Brief: Class encapsulatiung MS-Windows process API functions. | |
// APIS: CreateProcess, WaitForSingObject, GetProcessExitCode ... | |
// Author: Caio Rodrigues | |
//-------------------------------------------------------------- | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <cstdio> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Brief: C++17 Structured bindings experiments. | |
// Author: Caio Rodrigues | |
//-------------------------------------------------- | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <deque> | |
#include <map> | |
#include <tuple> | |
#include <iomanip> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File: dynamic-loading2.cpp | |
// Brief: Dynamically loads a DLL - shared library at runtime using a class. | |
// Note: Demonstration of WINAPIs LoadLibrary, FreeLibrary, GetProcAddress | |
// Author: Caio Rodrigues | |
//--------------------------------------------------------------------------- | |
#include <iostream> | |
#include <string> | |
#include <windows.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File: dynamic-loading1.cpp | |
// Brief: Dynamically loads a DLL - shared library at runtime. | |
// Note: Demonstration of WINAPIs LoadLibrary, FreeLibrary, GetProcAddress | |
// Author: Caio Rodrigues | |
//--------------------------------------------------------------------------- | |
#include <iostream> | |
#include <string> | |
#include <windows.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//--------------------------------------------------------------- | |
// File: GetLogicalDrivers.cpp | |
// Description: Enumerate all logical drivers in the computer. | |
// Author: Caio Rodrigues | |
//-------------------------------------------------------------- | |
#include <iostream> | |
#include <string> | |
#include <sstream> | |
#include <deque> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File: gui-without-winmain.cpp | |
// Brief: Minimal Windows GUI Program for Win32 API without WinMain. | |
// Author: Caio Rodrigues | |
//-------------------------------------------------------------------------------------- | |
#include <iostream> | |
#include <string> | |
#include <windows.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File: gui-basic1.cpp | |
// Brief: Minimal Windows GUI Program with Win32 API. | |
// Author: Caio Rodrigues | |
// | |
// Build with: | |
// $ cl.exe gui-basic1.cpp /EHsc /Zi /nologo /Fe:GuiApp.exe user32.lib gdi32.lib | |
//-------------------------------------------------------------------------------------- | |
#include <iostream> | |
#include <string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <string> | |
#include <cstdio> | |
#include <windows.h> | |
#include <urlmon.h> //Provides URLDownloadToFileW | |
#include <wininet.h> | |
#include <tchar.h> |