the emrah

Hi,

while(pEnum->Next(1, &pPin, 0) == S_OK)

what does the 0 for the cfetched argument mean

What is the difference if write it like the below

ULONG cfetched;
while(pEnum->Next(1, &pPin, &cfetched) == S_OK)



Re: DirectShow Development What does cfetched=0 mean?

Michel Roujansky

pcFetched is useful only when you are getting more than one object at the same time (cPins>1). In this case it returns the actual number of Pins obtained :

pcFetched

[out] Pointer to a variable that receives the number of pins retrieved. Can be NULL if cPins is 1.






Re: DirectShow Development What does cfetched=0 mean?

emrah asan

Thanks. But it would not make any difference if i write cfetched instead of 0. is this correct



Re: DirectShow Development What does cfetched=0 mean?

Michel Roujansky

absolutely no difference....