So I found this piece of code that I actually understand (the most of it anyway) so I will be able to learn something from it.
The problem is just 2 errors that I think are very strange.
(158): error C2065: 'true' : undeclared identifier
(160): error C2065: 'true' : undeclared identifier
Here is a piece of the code that I found:
Code:
case 1:
{
ShowWindow(camhwnd,SW_SHOW);
SendMessage(camhwnd,WM_CAP_DRIVER_CONNECT,0,0);
SendMessage(camhwnd, WM_CAP_SET_SCALE, true, 0);// Here is error 1
SendMessage(camhwnd, WM_CAP_SET_PREVIEWRATE, 30, 0);
SendMessage(camhwnd, WM_CAP_SET_PREVIEW, true, 0);// Here is error 2
break;
}
I am really confused about this error.
If someone could explain it to me, I would appreciate it.
/Daniel