请大家帮我看看,我是想在单文档应用程序中创建一个视频采集窗口:
HWND Hwndcap;CRect rect;
GetClientRect(&rect);
Hwndcap=capCreateCaptureWindow((LPCSTR) "视频采集",WS_CHILD|WS_VISIBLE,0, 25,
rect.Width(),rect.Height(),GetParent()->m_hWnd,0);
创建失败。错误提示:
CatchPicView.cpp(113) : error C2018: unknown character '0xa1'另外我在View中相应WM_SIZE中写入以下代码:
CRect WRect;
GetClientRect(&WRect);
::SetWindowPos(Hwndcap,NULL,0,25,
WRect.Width(), WRect.Height(),SWP_NOZORDER);第一个错误时我把rect.Width(),rect.Height()换成常数就没有错误了,而第二个我WRect.Width(), WRect.Height()换成常数也还是有错误。
HWND Hwndcap;CRect rect;
GetClientRect(&rect);
Hwndcap=capCreateCaptureWindow((LPCSTR) "视频采集",WS_CHILD|WS_VISIBLE,0, 25,
rect.Width(),rect.Height(),GetParent()->m_hWnd,0);
创建失败。错误提示:
CatchPicView.cpp(113) : error C2018: unknown character '0xa1'另外我在View中相应WM_SIZE中写入以下代码:
CRect WRect;
GetClientRect(&WRect);
::SetWindowPos(Hwndcap,NULL,0,25,
WRect.Width(), WRect.Height(),SWP_NOZORDER);第一个错误时我把rect.Width(),rect.Height()换成常数就没有错误了,而第二个我WRect.Width(), WRect.Height()换成常数也还是有错误。
这个我前面用过。