Click here to Skip to main content
15,910,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIntegrating c# code in vc++.net Pin
Ashraj19826-May-06 0:51
Ashraj19826-May-06 0:51 
AnswerRe: Integrating c# code in vc++.net Pin
Milton Karimbekallil6-May-06 1:29
Milton Karimbekallil6-May-06 1:29 
GeneralRe: Integrating c# code in vc++.net Pin
Ashraj19827-May-06 18:33
Ashraj19827-May-06 18:33 
QuestionCasting a pointer to an unmanaged const void* Pin
Ilkka Pitkänen6-May-06 0:48
Ilkka Pitkänen6-May-06 0:48 
AnswerRe: Casting a pointer to an unmanaged const void* Pin
Milton Karimbekallil6-May-06 2:10
Milton Karimbekallil6-May-06 2:10 
GeneralRe: Casting a pointer to an unmanaged const void* Pin
Ilkka Pitkänen6-May-06 6:38
Ilkka Pitkänen6-May-06 6:38 
GeneralRe: Casting a pointer to an unmanaged const void* Pin
Ilkka Pitkänen6-May-06 21:43
Ilkka Pitkänen6-May-06 21:43 
Questiona question regarding CString Pin
namaskaaram6-May-06 0:22
namaskaaram6-May-06 0:22 
AnswerRe: a question regarding CString Pin
Mahesh Kulkarni6-May-06 0:50
Mahesh Kulkarni6-May-06 0:50 
AnswerRe: a question regarding CString Pin
ThatsAlok6-May-06 23:07
ThatsAlok6-May-06 23:07 
QuestionHTML Interface Pin
kk.tvm5-May-06 23:38
kk.tvm5-May-06 23:38 
AnswerRe: HTML Interface Pin
Hamid_RT6-May-06 0:24
Hamid_RT6-May-06 0:24 
AnswerRe: HTML Interface Pin
ThatsAlok6-May-06 23:08
ThatsAlok6-May-06 23:08 
QuestionImportant:Sinking to HTML element events in IE Pin
rana745-May-06 23:34
rana745-May-06 23:34 
AnswerRe: Important:Sinking to HTML element events in IE Pin
Stephen Hewitt5-May-06 23:39
Stephen Hewitt5-May-06 23:39 
GeneralRe: Important:Sinking to HTML element events in IE Pin
rana745-May-06 23:41
rana745-May-06 23:41 
GeneralRe: Important:Sinking to HTML element events in IE Pin
Stephen Hewitt6-May-06 0:00
Stephen Hewitt6-May-06 0:00 
Questionhow to save all frames from a video file as a jpeg image Pin
sunita ramesh5-May-06 23:26
sunita ramesh5-May-06 23:26 
Hi all,

I want to save each frame from a video file(.cam).I wrote the following coding to get the image.

<br />
	       CFile				cf;<br />
		CString				filename;<br />
		int				xu_flag;<br />
		BITMAPFILEHEADER	     xufileheader;<br />
		char *				xu_sp;<br />
		long				outputlen;<br />
<br />
			<br />
		filename = "c:\\temp\\test.jpg";<br />
		xufileheader.bfOffBits = 54;<br />
		xufileheader.bfSize = xu_newwidth * xu_newheight * 3 + sizeof(BITMAPINFOHEADER) +sizeof(BITMAPFILEHEADER);<br />
		xufileheader.bfType = 0x4d42;<br />
		xu_sp = new char [xu_newwidth * xu_newheight * 3+ sizeof(BITMAPINFOHEADER) + sizeof(BITMAPFILEHEADER)];<br />
		outputlen = xu_newwidth * xu_newheight * 3 + sizeof(BITMAPINFOHEADER) + sizeof(BITMAPFILEHEADER);<br />
		memcpy(xu_sp, &xufileheader, sizeof(BITMAPFILEHEADER));<br />
		memcpy(xu_sp + sizeof(BITMAPFILEHEADER), xu_buff, <br />
			  (xu_newwidth * xu_newheight * 3 + sizeof(BITMAPINFOHEADER)));<br />
		xu_flag = cf.Open(filename, CFile::modeCreate | CFile::modeWrite);<br />
		cf.WriteHuge(xu_sp, outputlen); <br />
		cf.Close(); 


But my problem is,I can able to catch only one frame at a time.But i need to save all the frames.

How do i acheive this?

help me please

sunita ramesh
AnswerRe: how to save all frames from a video file as a jpeg image Pin
kk.tvm5-May-06 23:45
kk.tvm5-May-06 23:45 
AnswerRe: how to save all frames from a video file as a jpeg image Pin
Phil C6-May-06 20:24
Phil C6-May-06 20:24 
QuestionOutput of Simple C Program ? Pin
Andy Rama5-May-06 23:05
Andy Rama5-May-06 23:05 
AnswerRe: Output of Simple C Program ? Pin
Nibu babu thomas5-May-06 23:11
Nibu babu thomas5-May-06 23:11 
GeneralRe: Output of Simple C Program ? Pin
Andy Rama5-May-06 23:49
Andy Rama5-May-06 23:49 
AnswerRe: Output of Simple C Program ? Pin
Hamid_RT6-May-06 0:38
Hamid_RT6-May-06 0:38 
GeneralRe: Output of Simple C Program ? Pin
Andy Rama6-May-06 18:26
Andy Rama6-May-06 18:26 

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.