Skip to content

stride-nyc/CPPSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

70869c6 · Dec 10, 2024

History

1 Commit
Dec 10, 2024
Dec 10, 2024
Dec 10, 2024
Dec 10, 2024

Repository files navigation

GDI Windows App

This is a basic Windows desktop application built using Visual Studio 2019. The app demonstrates the use of the Windows Graphics Device Interface (GDI) for drawing shapes, lines, and text in a simple graphical window.

Prerequisites

  • Visual Studio 2019 (with C++ Desktop Development workload)
    • This project was created and tested in Visual Studio 2019. Other versions may not be compatible.
  • Windows Operating System
    • A Windows machine is required to build and run this application.

Getting Started

1. Clone the Repository

Clone this repository to your local machine using Git:

git clone [email protected]:stride-nyc/CPPSample.git

2. Open the Project in Visual Studio 2019

  1. Open Visual Studio 2019.
  2. Go to File > Open > Project/Solution.
  3. Navigate to the project folder and select the .sln file.

3. Build the Solution

  1. Press Ctrl + Shift + B or go to Build > Build Solution.
  2. Ensure there are no build errors before running the application.

4. Run the Application

  1. Press F5 or go to Debug > Start Debugging to launch the application.
  2. A window will open displaying the GDI-rendered graphics.

Features

  • Draws shapes (rectangle, ellipse).
  • Draws a line and displays text.
  • Uses a custom pen for styled drawing.

Project Structure

  • CPPSample.cpp: Main application code with GDI examples.
  • CPPSample.sln: Visual Studio 2019 solution file.
  • CPPSample.vcxproj: Project file with configuration details.

Requirements

  • Operating System: Windows 10 or later (for best compatibility).
  • Development Environment: Visual Studio 2019 (with the required workloads installed).

About

Sample MSVC CPP code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published