Finally I can compile with no errors (thanks Nigel for your coments). Now I'm checking all options are working correc. I have some problems connecting cameras.
I checked on 3 diferent pc with different cameras: HP 2.0MP High Definition Webcam ASUS USB2.0 WebCam Logitech C922 Pro Stream Webcam
Problem come with Logitech camera. Apparently program connects but no image is shown and I can't select any area to capture. I triyed demo "DirectShow Frame Capture" (DShowCap.exe) and this works fine.
there may be some connection option, on or off, to produce this problem?
Client has 3 pc's with the same camera and my program fail in 2 pc's and it works in the third. As a curiosity on this 2 pc the program worked first two days.
If my program or demos have camera activate then the original camera program shows message "camera is locked by other program". If original camera program is on, demos don't activate and my program probably don't as never show video capture.
Can I check for any error code done on activation? I think the problem is produced while activation.