Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionEscape characters Pin
jon-8023-Jul-06 7:53
professionaljon-8023-Jul-06 7:53 
AnswerRe: Escape characters Pin
Michael Dunn23-Jul-06 8:53
sitebuilderMichael Dunn23-Jul-06 8:53 
AnswerRe: Escape characters Pin
Steve Echols23-Jul-06 17:52
Steve Echols23-Jul-06 17:52 
QuestionVirtual WebCam Pin
DobosCake23-Jul-06 7:17
DobosCake23-Jul-06 7:17 
AnswerRe: Virtual WebCam Pin
Justin Tay23-Jul-06 7:44
Justin Tay23-Jul-06 7:44 
AnswerRe: Virtual WebCam Pin
DobosCake23-Jul-06 8:49
DobosCake23-Jul-06 8:49 
GeneralRe: Virtual WebCam Pin
Justin Tay23-Jul-06 10:07
Justin Tay23-Jul-06 10:07 
AnswerRe: Virtual WebCam Pin
DobosCake23-Jul-06 23:48
DobosCake23-Jul-06 23:48 
Thanks for your response.

hfry wrote:

1) "Capture" filter creates an internal graph with sample grabber. When sample grabber provides sample, copy the data in the sample into the buffer your "capture" filter gets from its allocator and pass that sample along.


So that's what I did, and it's working perfectly for quite a lot of files.
I also add the Color Space Converter filter right before the (removed) Video Renderer filter, because some applications want to change the media format.

I still have one problem though. For some files, I don't know exactly
when, but apparently when the format is changed, it breaks the pin of
the Sample Grabber. In SetFormat, I sometimes have to reconnect pins
myself because that's what the documentation says you have to do when you change the format of an already connected pin. I do that successfully, but somewhere afterwards (I'm not sure yet when...), by the time I get to FillBuffer(), something disconnects again.

I also tried to connect filters in GraphEdit the same way I do in my filter. For connection combination you see that the Sample Grabber disconnects and has to be reconnected again. I still don't get it...

Any advice?



Questionwhy use new() function in C++? Pin
kitty523-Jul-06 7:16
kitty523-Jul-06 7:16 
AnswerRe: why use new() function in C++? Pin
Chris Losinger23-Jul-06 10:03
professionalChris Losinger23-Jul-06 10:03 
GeneralRe: why use new() function in C++? Pin
kitty523-Jul-06 13:06
kitty523-Jul-06 13:06 
GeneralRe: why use new() function in C++? Pin
Chris Losinger23-Jul-06 14:11
professionalChris Losinger23-Jul-06 14:11 
QuestionArray of chars Pin
jon-8023-Jul-06 4:08
professionaljon-8023-Jul-06 4:08 
AnswerRe: Array of chars [modified] Pin
Justin Tay23-Jul-06 4:22
Justin Tay23-Jul-06 4:22 
QuestionNM_CUSTOMDRAW with the default ToolBar in MDI Pin
kdehairy23-Jul-06 1:39
kdehairy23-Jul-06 1:39 
AnswerRe: NM_CUSTOMDRAW with the default ToolBar in MDI Pin
Hamid_RT23-Jul-06 3:05
Hamid_RT23-Jul-06 3:05 
GeneralRe: NM_CUSTOMDRAW with the default ToolBar in MDI Pin
kdehairy27-Jul-06 7:42
kdehairy27-Jul-06 7:42 
GeneralRe: NM_CUSTOMDRAW with the default ToolBar in MDI Pin
Hamid_RT27-Jul-06 22:27
Hamid_RT27-Jul-06 22:27 
QuestionCListCtrl with static columns. Pin
paperke6723-Jul-06 1:35
paperke6723-Jul-06 1:35 
AnswerRe: CListCtrl with static columns. Pin
Hamid_RT27-Jul-06 7:25
Hamid_RT27-Jul-06 7:25 
GeneralRe: CListCtrl with static columns. Pin
paperke6729-Jul-06 2:29
paperke6729-Jul-06 2:29 
GeneralRe: CListCtrl with static columns. Pin
Hamid_RT29-Jul-06 2:55
Hamid_RT29-Jul-06 2:55 
QuestionListbox control variable ?? Pin
jon-8023-Jul-06 1:15
professionaljon-8023-Jul-06 1:15 
AnswerRe: Listbox control variable ?? Pin
Hamid_RT23-Jul-06 3:00
Hamid_RT23-Jul-06 3:00 
QuestionHow get all new contacts which are created after a given time Outlook Express? Pin
mpprasad23-Jul-06 0:17
mpprasad23-Jul-06 0:17 

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.