Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.74 KB

File metadata and controls

37 lines (21 loc) · 1.74 KB

Camera Window

Introduction

This project creates a window that accesses your laptops camera. It's a very simple project because it was meant to address a problem that I was having with OBS. For creating the .exe InnoSetup was used.

Languages/Tools

C, SDL3, Visual Studio

Demo

2026-05-27.22-50-40.mp4

TroubleShooting

i was getting this error when opening exe on diffrent laptop the code execution cannot proceed because Ucrtbased.dll was not found. realised reason for this was that I compiled project in Debug Mode in Visual Studio. In Debug Mode this dependency is used Ucrtbased.dll. This dependencies isnt installed by default on windows machines which is why the error was caused. In order to fix this issue you need to switch to Release. In Release ucrt.dll is used which is found by default on all windows machines.

image

and rebuild solution

image

This should have created a Release folder where the new exe will be present. Use this new exe file to compile the exe for distribution.

Links

https://www.youtube.com/watch?v=nvDLBM0l7nA

https://www.youtube.com/watch?v=l1p2GQxcP54

https://discourse.libsdl.org/t/creating-an-easily-distributable-executable-file/24413/2

https://wiki.libsdl.org/SDL3/SDL_SetWindowAlwaysOnTop

https://wiki.libsdl.org/SDL3/SDL_SetWindowResizable

https://stackoverflow.com/questions/79386427/resizing-a-borderless-window-is-not-working-in-sdl3

https://wiki.libsdl.org/SDL2/SDL_SetWindowBordered