Login

 

Site Menu

SDL2 Guides (Prerequisite), Setting Up Visual Studio 2015

Setting up Visual Studio for SDL2Welcome to setting up Visual Studio 2015, a prerequisite of my SDL2 Guide series! In this guide you will learn how to create a new C/C++ Win32 Project and configure it to use SDL2. The prerequisites for this course include the following:
  • You must already have mastered most key concepts of C/C++. 
  • You have at least Microsoft Visual Studio 2012 Professional, Community or Better (I'm using 2015 Professional, but Community is free and nearly the same).
  • A delightful beverage.
 
Add a comment

Read more ...

SDL2 Guides, Part 02: Loading & Rendering Images

SDL2 Guides: Part 2Welcome to part two of my SDL2 Guide series! In this guide you will learn how to load images and render them to the screen using the SDL2 library. The prerequisites for this course include the following:
  • You must already have mastered most key concepts of C/C++. 
  • You are already familiar with your development environment and platform.
  • You have already downloaded SDL2 and configured a blank project.
  • You have followed (if necessary) part one of these guides.
Add a comment

Read more ...

SDL2 Guides, Part 01: Your first SDL2 application

SDL2 Guides: Part 1Welcome to part one of my SDL2 Guide series! In this guide you will learn how to write your first SDL2 application. In this application you will initialize SDL, create a window, create a renderer, accept keyboard input and draw to the screen. The prerequisites for this course include the following:
  • You must already have mastered most key concepts of C / C++.
  • You've followed the Visual Studio Setup Guide if you intend on using Visual Studio for these tutorials.
  • You are already familiar with your development environment and platform.
  • You have already downloaded SDL2 and configured a blank project.
Add a comment

Read more ...

How to find if a process exists by it's executable filename

How do you find out if a process exists by its executable filename? Unfortunately there isn't a simple way to do this with Windows API. To accomplish this you will have to enumerate all of the processes using CreateToolhelp32Snapshot. You also may not see every process depending on what user you're running as. For most, this gets the job done. Feel free to use this and change it to fit your needs.

Add a comment

Read more ...

How to make RegEnumValue vector friendly

I often get some fun challenges from coders looking for help in the #winapi channel I frequent on freenode. The coder today was looking for a way to get the output from RegEnumValue and values of type REG_SZ into a vector. Start by creating a Win32 project. In your stdafx.h here's what we need to include:

Add a comment

Read more ...

Subcategories

  • SDL2

    SDL2"Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D." - Click here to visit SDL2's official website.

    Article Count:
    3
  • Windows API

    Windows & This Logo are Trademarks of Microsoft."The Windows API, informally WinAPI, is Microsoft's core set of application programming interfaces (APIs) available in the Microsoft Windows operating systems. The name Windows API collectively refers to a number of different platform implementations that are often referred to by their own names (for example, Win32 API). Almost all Windows programs interact with the Windows API; on the Windows NT line of operating systems, a small number (such as programs started early in the Windows startup process) use the Native API." -- Wikipedia Article

    Article Count:
    5