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.
- 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.
Clone this repository to your local machine using Git:
git clone [email protected]:stride-nyc/CPPSample.git
- Open Visual Studio 2019.
- Go to File > Open > Project/Solution.
- Navigate to the project folder and select the
.sln
file.
- Press Ctrl + Shift + B or go to Build > Build Solution.
- Ensure there are no build errors before running the application.
- Press F5 or go to Debug > Start Debugging to launch the application.
- A window will open displaying the GDI-rendered graphics.
- Draws shapes (rectangle, ellipse).
- Draws a line and displays text.
- Uses a custom pen for styled drawing.
CPPSample.cpp
: Main application code with GDI examples.CPPSample.sln
: Visual Studio 2019 solution file.CPPSample.vcxproj
: Project file with configuration details.
- Operating System: Windows 10 or later (for best compatibility).
- Development Environment: Visual Studio 2019 (with the required workloads installed).