主题:[原创]capCreateCaptureWindow函数编译
#include "vfw.h"
hwndc = capCreateCaptureWindow(
(LPCWSTR) "my capture window",
2 | 3,
2, 2, 352, 288,
hwndc,
0);
函数的最后一个参数“0”编译出错,显示出错信息是:
[C++ Error] control_pro.cpp(56): E2034 Cannot convert 'const wchar_t *' to 'const char *'
[C++ Error] control_pro.cpp(56): E2342 Type mismatch in parameter 'lpszWindowName' (wanted 'const char *', got 'const wchar_t *')
hwndc = capCreateCaptureWindow(
(LPCWSTR) "my capture window",
2 | 3,
2, 2, 352, 288,
hwndc,
0);
函数的最后一个参数“0”编译出错,显示出错信息是:
[C++ Error] control_pro.cpp(56): E2034 Cannot convert 'const wchar_t *' to 'const char *'
[C++ Error] control_pro.cpp(56): E2342 Type mismatch in parameter 'lpszWindowName' (wanted 'const char *', got 'const wchar_t *')