Cannot convert from 'WCHAR' to 'WCHAR [260]'
I am trying to modify amcap app from Windows SDK app to capture video from a UVC webcam at 1600x1200px resolution.
I am trying to copy some variables here like filename, default resolution, format type, etc.
WCHAR wszCaptureFile[260];
gcap.wszCaptureFile = (WCHAR)"Capture.avi\0" //modified
Gettnig error:
1>. \ Amcap.cpp (3887): error C2440: '=': unable to convert from 'WCHAR' to 'WCHAR [260]'
What can I do to fix this?
0
a source to share