ilek
February 3, 2010, 09:07:51
Hi
I use Visual Studio 2008 and C++ MFC Programming.
I make some MFC Dialog base Program with save image function.
I make program base on Sample Code(In CD's).
and use VCD Simple file.
in the Dialog View add one button that is Capture.
and Insert code from website's example code that is
http://www.imagingcontrol.com/en_US/support/documentation/class/meth_descreffunctions_saveToFileJPEG.htm
Next is add button program part.
void CVCDSimpleDlg::OnBnClickedCapture()
{
// TODO:
m_Grabber.snapImages(1);
DShowLib::saveToFileJPEG(*m_Grabber.getActiveMemBu ffer(),"Testimage.jpg",75);
}
and press F5, Run Program, Select Devie , Image is right,
So I Press "Capture" Button and then...
as I Know the program is capture image and save "TestImage.jpg" File.
BUT....
Program Debugger stop and display Error Message.
I do not edit other part of the program, Just edit OnBnClickedCapture() part.
So I Request Some advice about programmig
1. How can i fix that Error. Please tell me how edit that program.
2. What is difference between isLive() and startLive()
Please Tell me..
and have a good day
I use Visual Studio 2008 and C++ MFC Programming.
I make some MFC Dialog base Program with save image function.
I make program base on Sample Code(In CD's).
and use VCD Simple file.
in the Dialog View add one button that is Capture.
and Insert code from website's example code that is
http://www.imagingcontrol.com/en_US/support/documentation/class/meth_descreffunctions_saveToFileJPEG.htm
Next is add button program part.
void CVCDSimpleDlg::OnBnClickedCapture()
{
// TODO:
m_Grabber.snapImages(1);
DShowLib::saveToFileJPEG(*m_Grabber.getActiveMemBu ffer(),"Testimage.jpg",75);
}
and press F5, Run Program, Select Devie , Image is right,
So I Press "Capture" Button and then...
as I Know the program is capture image and save "TestImage.jpg" File.
BUT....
Program Debugger stop and display Error Message.
I do not edit other part of the program, Just edit OnBnClickedCapture() part.
So I Request Some advice about programmig
1. How can i fix that Error. Please tell me how edit that program.
2. What is difference between isLive() and startLive()
Please Tell me..
and have a good day