jj2007 wrote:
Looks feasible. I wonder if FASM adds the zero delimiter automatically:
_camtitle db 'FASMWEBCAM'
and also here:
_filename db 'IMAGE.BMP' ; Filename
Good point.
Perhaps the "invoke" of Fasm automatically zero terminates?
EDIT:
Did some more checking with other Fasm examples and I suspect it's a mistake and it should be zero terminated in the code.
Look at lines 292 to 302 of the asm file in this example:
http://flatassembler.net/examples/quetannon.zipEDIT:
Decided to run the webcam exe supplied in the zip thru a hex editor and sure enough no zeros.
Don't have a webcam connected to this PC so can't test.

It turns out that there is a null at offset 0413h so the app might not crash but might also not get the desired result
especially when calling:
capCreateCaptureWindow, _camtitle, WS_VISIBLE + WS_CHILD, 10, 10, 266, 252, [hdlg], 0
