Click here to Skip to main content
15,902,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ Snippets Pin
Richard MacCutchan22-Jan-14 20:59
mveRichard MacCutchan22-Jan-14 20:59 
AnswerRe: VC++ Snippets Pin
David Crow23-Jan-14 3:42
David Crow23-Jan-14 3:42 
AnswerRe: VC++ Snippets Pin
BarryPearlman23-Jan-14 4:01
BarryPearlman23-Jan-14 4:01 
QuestionWhat mac is the best for visual C++ Pin
javaandcpp1022-Jan-14 5:31
javaandcpp1022-Jan-14 5:31 
SuggestionRe: What mac is the best for visual C++ Pin
Richard MacCutchan22-Jan-14 5:39
mveRichard MacCutchan22-Jan-14 5:39 
AnswerRe: What mac is the best for visual C++ Pin
Albert Holguin27-Jan-14 7:30
professionalAlbert Holguin27-Jan-14 7:30 
QuestionNeed help to show chm-Files? Pin
bosfan22-Jan-14 4:31
bosfan22-Jan-14 4:31 
QuestionDirect Show : "Mp3 Decoder DMO" filter fails to return any input pins Pin
sdancer7522-Jan-14 0:55
sdancer7522-Jan-14 0:55 
Hi,

The code below fails to get any input pins for the filter "Mp3 Decoder DMO".

The class ID for the specific filter is {94297043-BD82-4DFD-B0DE-8177739C6D20} . Specifically, it fails at the very first while condition. I get S_FALSE which means "Did not retrieve as many pins as requested."

Does it play any role that this specific filter is DMO (Direct Media Object) filter ? If this is the case, is there nay other way to get the input pins ?

In my graphedit it connects and works just fine , but under my code it fails. Any recommendations ?


C++
IPin* Graph::GetPin(IBaseFilter *pFilter, PIN_DIRECTION PinDir, UCHAR PinCounter) {
    BOOL       bFound = FALSE;
    IEnumPins  *pEnum;
    IPin       *pPin;
    HRESULT	hr =S_OK;
    UCHAR	localPinCounter = 0;

    hr = pFilter->EnumPins(&pEnum);
	if (SUCCEEDED(hr)) {

			while(pEnum->Next(1, &pPin, 0) == S_OK) {
				PIN_DIRECTION PinDirThis;
				pPin->QueryDirection(&PinDirThis);
				if (bFound = ( (PinDir == PinDirThis) && (PinCounter == localPinCounter) ) )
					break;
				pPin->Release();
				localPinCounter++;
			}

			
			pEnum->Release();

	} else {
		
		return 0;
	}


Regards,
sdancer75

Questionplease help me to convert string in Unicode bytes? Pin
Le@rner21-Jan-14 22:54
Le@rner21-Jan-14 22:54 
AnswerRe: please help me to convert string in Unicode bytes? Pin
Richard MacCutchan21-Jan-14 23:06
mveRichard MacCutchan21-Jan-14 23:06 
GeneralRe: please help me to convert string in Unicode bytes? Pin
Le@rner22-Jan-14 1:09
Le@rner22-Jan-14 1:09 
GeneralRe: please help me to convert string in Unicode bytes? Pin
Richard MacCutchan22-Jan-14 1:27
mveRichard MacCutchan22-Jan-14 1:27 
QuestionGradient detection for pic micros Pin
Senned20-Jan-14 2:27
Senned20-Jan-14 2:27 
AnswerRe: Gradient detection for pic micros Pin
CPallini20-Jan-14 3:15
mveCPallini20-Jan-14 3:15 
GeneralRe: Gradient detection for pic micros Pin
Senned20-Jan-14 3:23
Senned20-Jan-14 3:23 
GeneralRe: Gradient detection for pic micros Pin
CPallini20-Jan-14 3:28
mveCPallini20-Jan-14 3:28 
GeneralRe: Gradient detection for pic micros Pin
Senned20-Jan-14 3:37
Senned20-Jan-14 3:37 
QuestionRe: Gradient detection for pic micros Pin
CPallini20-Jan-14 7:09
mveCPallini20-Jan-14 7:09 
GeneralRe: Gradient detection for pic micros Pin
Senned20-Jan-14 20:58
Senned20-Jan-14 20:58 
GeneralRe: Gradient detection for pic micros Pin
CPallini20-Jan-14 21:36
mveCPallini20-Jan-14 21:36 
QuestionGradient detection for pic micros Pin
Senned20-Jan-14 2:27
Senned20-Jan-14 2:27 
QuestionDicom dcmqsc Pin
Member 1017436318-Jan-14 3:12
Member 1017436318-Jan-14 3:12 
AnswerRe: Dicom dcmqsc Pin
Richard MacCutchan18-Jan-14 4:14
mveRichard MacCutchan18-Jan-14 4:14 
GeneralRe: Dicom dcmqsc Pin
Member 1017436319-Jan-14 2:46
Member 1017436319-Jan-14 2:46 
GeneralRe: Dicom dcmqsc Pin
Richard MacCutchan19-Jan-14 2:56
mveRichard MacCutchan19-Jan-14 2:56 

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.