Web camera output in dialog in C++
I need to create system, which will consist of web camera and PC. I need to show pictures from web camera in my dialog-based application in C++. I would like to use openCV libraries. How can I do it? Do you have any example?