You cant with this api,
for a more modern approach please see my other webcam program
http://www.dreaminco...-c-for-windows/
where you can get rid of the need to choose a camera if you wish.
However remember, it is good practice to allow the user to choose a camera.
Regards
Snoopy.
Win32 WebCam Program Displays a Webcam Picture, Saves it as a .bmp file
#62
Posted 10 April 2017 - 10:00 AM
Oh thanks anyways! And is there any way i can edit the capture, like adding a red line in the middle of the capture before saving it as a file in my project folder??
#63
Posted 10 April 2017 - 11:43 AM
Yes with the new program you can do such a thing as overlays !
#64
Posted 07 November 2018 - 01:47 PM
Hi Snoopy,
reading the tutorial looks amazing,
this is something that I always wanted to experiment with but I have a question will this still work on a windows 10 machine?
I am using codeblocks IDE with a mingw32 compiler as mentioned on Windows 10
is it possible that any functions/procedures that are used in this tutorial are deprecated?
I hope to start on this tutorial tomorrow
reading the tutorial looks amazing,
this is something that I always wanted to experiment with but I have a question will this still work on a windows 10 machine?
I am using codeblocks IDE with a mingw32 compiler as mentioned on Windows 10
is it possible that any functions/procedures that are used in this tutorial are deprecated?
I hope to start on this tutorial tomorrow

#65
Posted 08 November 2018 - 06:21 AM
adamchalkley, on 07 November 2018 - 08:47 PM, said:
Hi Snoopy,
snip
this is something that I always wanted to experiment with but I have a question will this still work on a windows 10 machine?
snip
is it possible that any functions/procedures that are used in this tutorial are deprecated?
snip
this is something that I always wanted to experiment with but I have a question will this still work on a windows 10 machine?
snip
is it possible that any functions/procedures that are used in this tutorial are deprecated?
It relies on old technology ie VFW running it from a laptop with a built-in webcam can give patchy results you must take into consideration I wrote this on Windows XP when windows XP was new and it was designed to run from a pc with a usb camera it still can run on windows 10 but results can be patchy as .
A more modern approach is found here
https://www.dreaminc...-c-for-windows/
It uses WMF which is not yet deprecated even under Windows 10.
VFW is supposed to be deprecated but if you have a usb camera then the program works fine.
Please read the new Tutorial properly though as it will only run under Visual Studio and not Code::Blocks this is due to VS specific headers and I have not translated the new tut to run under MinGW as of yet, I had given consideration to using TDM-GCC's version of MinGW but have not done so as yet.