Drawframe c++
Posted: Mon Feb 09, 2009 12:20 pm
Hello,
I am using C++.
I need to know how to get the long Hwnd in order to use it in the DrawFrame, i use your sample as a guide but i allways get errors.
this is what i am doing:
[size:8pt]camera->DrawFrame(frame,(LONG) GetDlgItem(IDC_STATIC_FRAME_IMAGE)->GetSafeHwnd());[/size]
This are the errors:
[size:8pt]...GetDlgItem: Fuction does not take 1 arguments[/size]
[size:8pt]...left of ->GetSafeHwnd must point to class...[/size]
I tried to correct bouth errors adding stdafx.h but when i do it i have this new error:
[size:8pt]...building MFC aplication with/MD[d] (CRT dll Version) requires MFC shared version.Please #define_AFXDLL or do not use /MD[d][/size]
and this time i really dont know what to do, i dont even know what this error means...when i run your aplication i never get any one of this problems.
What can i do?
Thanks
I am using C++.
I need to know how to get the long Hwnd in order to use it in the DrawFrame, i use your sample as a guide but i allways get errors.
this is what i am doing:
[size:8pt]camera->DrawFrame(frame,(LONG) GetDlgItem(IDC_STATIC_FRAME_IMAGE)->GetSafeHwnd());[/size]
This are the errors:
[size:8pt]...GetDlgItem: Fuction does not take 1 arguments[/size]
[size:8pt]...left of ->GetSafeHwnd must point to class...[/size]
I tried to correct bouth errors adding stdafx.h but when i do it i have this new error:
[size:8pt]...building MFC aplication with/MD[d] (CRT dll Version) requires MFC shared version.Please #define_AFXDLL or do not use /MD[d][/size]
and this time i really dont know what to do, i dont even know what this error means...when i run your aplication i never get any one of this problems.
What can i do?
Thanks