Click here to Skip to main content
16,006,442 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simple socks TCP connecting Pin
Moak29-Feb-08 22:52
Moak29-Feb-08 22:52 
QuestionRe: Simple socks TCP connecting Pin
Moak23-Feb-08 3:01
Moak23-Feb-08 3:01 
GeneralRe: Simple socks TCP connecting Pin
Johpoke23-Feb-08 3:06
Johpoke23-Feb-08 3:06 
GeneralRe: Simple socks TCP connecting Pin
Moak26-Feb-08 0:34
Moak26-Feb-08 0:34 
Questionproblems with cap and vfw Pin
cmos17-Feb-08 4:09
cmos17-Feb-08 4:09 
QuestionRe: problems with cap and vfw Pin
cmos17-Feb-08 5:02
cmos17-Feb-08 5:02 
GeneralRe: problems with cap and vfw Pin
Mark Salsbery17-Feb-08 9:46
Mark Salsbery17-Feb-08 9:46 
AnswerRe: problems with cap and vfw Pin
cmos17-Feb-08 10:07
cmos17-Feb-08 10:07 
Hello thanks for your answer.
I dotn have problems getting the drivers. This always works.
And yes, i also use sName.GetBufferSetLength( ).

I found the problem but dont know how to solve it.
As i told in my first reply i said that i wrote another small dialog for testing.

<br />
m_sLiveview.GetWindowRect(&m_Rect);<br />
	ScreenToClient(&m_Rect);<br />
	m_hwndCap = capCreateCaptureWindow(_T("USB"),WS_CHILD|WS_VISIBLE,m_Rect.TopLeft().x,m_Rect.TopLeft().y,m_Rect.Width(),m_Rect.Height(),this->GetSafeHwnd(),999);<br />
<br />
//	char szDeviceName[80];<br />
//	char szDeviceVersion[80];<br />
	CString szDeviceName; szDeviceName.GetBufferSetLength(100);<br />
	CString szDeviceVersion; szDeviceVersion.GetBufferSetLength(100);<br />
	CAtlArray<cstring> List;<br />
<br />
	for (int wIndex = 0; wIndex < 10; wIndex++) <br />
	{<br />
		if (capGetDriverDescription (wIndex, szDeviceName.GetBuffer(), szDeviceName.GetAllocLength(), szDeviceVersion.GetBuffer(),szDeviceVersion.GetAllocLength()))<br />
	    {<br />
		    List.Add(szDeviceName);<br />
		}<br />
	} <br />
	<br />
	capDriverConnect(m_hwndCap,List.GetCount()-1);<br />
	CAPDRIVERCAPS caps;<br />
	capDriverGetCaps(m_hwndCap,&caps,sizeof(CAPDRIVERCAPS));<br />
	<br />
	CString sMCIName;<br />
	if (caps.fHasDlgVideoSource)<br />
	{<br />
		capDlgVideoSource(m_hwndCap); 				<br />
	}<br />
<br />
	capCaptureAbort(m_hwndCap);<br />
	capSetCallbackOnError(m_hwndCap,NULL);<br />
	capSetCallbackOnCapControl(m_hwndCap,NULL);<br />
	capSetCallbackOnStatus(m_hwndCap,NULL);<br />
	capSetCallbackOnFrame(m_hwndCap,FrameCallbackProc);<br />
	capSetCallbackOnVideoStream(m_hwndCap, NULL);<br />
	capSetUserData(m_hwndCap,NULL);	<br />
<br />
	capPreviewRate(m_hwndCap,150);<br />
	capPreview(m_hwndCap,TRUE);<br />
</cstring>
;

with this settings it works because i call the capDlgVideoSource makro. There I can choose between
my graphicscard input and my webcam. So i think i need a way to get the device names instead
of the driver name. Althouh i have to input device installed (graphicscard video input and webcam) i can only choose one Windows WDM Capture Driver.

I also checked out the capGetMCIDeviceName but this only gets the previously set MCI device name.

Do you understand my problem ?

greetings
GeneralRe: problems with cap and vfw Pin
Mark Salsbery17-Feb-08 10:21
Mark Salsbery17-Feb-08 10:21 
GeneralRe: problems with cap and vfw Pin
cmos17-Feb-08 10:59
cmos17-Feb-08 10:59 
GeneralRe: problems with cap and vfw Pin
Mark Salsbery17-Feb-08 13:06
Mark Salsbery17-Feb-08 13:06 
GeneralChanging the height of a CstatusBar Pin
Stan the man17-Feb-08 4:05
Stan the man17-Feb-08 4:05 
GeneralRe: Changing the height of a CstatusBar Pin
Iain Clarke, Warrior Programmer18-Feb-08 3:07
Iain Clarke, Warrior Programmer18-Feb-08 3:07 
GeneralRe: Changing the height of a CstatusBar Pin
Stan the man18-Feb-08 3:19
Stan the man18-Feb-08 3:19 
QuestionHow can i use CFtpConnection object in asynchronous way ? Pin
Yanshof17-Feb-08 3:22
Yanshof17-Feb-08 3:22 
AnswerRe: How can i use CFtpConnection object in asynchronous way ? Pin
Mark Salsbery17-Feb-08 8:40
Mark Salsbery17-Feb-08 8:40 
QuestionHow to change font size of menu bar? Pin
hanlei000000000917-Feb-08 3:03
hanlei000000000917-Feb-08 3:03 
AnswerRe: How to change font size of menu bar? Pin
Rajkumar R17-Feb-08 5:53
Rajkumar R17-Feb-08 5:53 
AnswerRe: How to change font size of menu bar? Pin
Hamid_RT18-Feb-08 7:26
Hamid_RT18-Feb-08 7:26 
Generaldllimport Pin
George_George17-Feb-08 0:39
George_George17-Feb-08 0:39 
GeneralRe: dllimport Pin
Rajkumar R17-Feb-08 1:01
Rajkumar R17-Feb-08 1:01 
GeneralRe: dllimport Pin
George_George17-Feb-08 2:01
George_George17-Feb-08 2:01 
GeneralRe: dllimport Pin
Rajkumar R17-Feb-08 2:10
Rajkumar R17-Feb-08 2:10 
GeneralRe: dllimport Pin
George_George17-Feb-08 13:40
George_George17-Feb-08 13:40 
GeneralRe: dllimport [modified] Pin
Rajkumar R17-Feb-08 18:10
Rajkumar R17-Feb-08 18:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.