Hi,
I am using QT-4.3 and Using Visual Studio-2005 for compiling. I need to find the Web camera in windows. For that I use this command,
char szDeviceName[80];
char szDeviceVersion[80];
for(int iPos = 0; iPos<2; iPos++)
{
if (capGetDriverDescription( iPos, szDeviceName, sizeof (szDeviceName),
szDeviceVersion,
sizeof (szDeviceVersion)
))
qDebug()<< " driverName " << driverName;
}
char szDeviceName[80];
char szDeviceVersion[80];
for(int iPos = 0; iPos<2; iPos++)
{
if (capGetDriverDescription( iPos, szDeviceName, sizeof (szDeviceName),
szDeviceVersion,
sizeof (szDeviceVersion)
))
qDebug()<< " driverName " << driverName;
}
To copy to clipboard, switch view to plain text mode
when I try this, at the time of compiling VS-2005 display an error like this,
'capGetDriverDescriptionW' : cannot convert parameter 2 from 'char [80]' to 'LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Please help me to solve this probs
Bookmarks