Click here to Skip to main content
15,923,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Beginner- Floating point character conversion character Pin
Satya Chamakuri9-Aug-14 1:46
Satya Chamakuri9-Aug-14 1:46 
QuestionGraphics Pipeline questions Ortho projection Pin
shiftwik23-Jun-14 12:04
shiftwik23-Jun-14 12:04 
QuestionTwo ChlidFrames in MDI application? Pin
Member 1074879523-Jun-14 8:59
Member 1074879523-Jun-14 8:59 
AnswerRe: Two ChlidFrames in MDI application? Pin
shiftwik23-Jun-14 12:08
shiftwik23-Jun-14 12:08 
Questionhow to get rid of this error *** fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory ***** Pin
Member 1089437823-Jun-14 2:08
Member 1089437823-Jun-14 2:08 
AnswerRe: how to get rid of this error *** fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory ***** Pin
leon de boer23-Jun-14 2:16
leon de boer23-Jun-14 2:16 
AnswerRe: how to get rid of this error *** fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory ***** Pin
«_Superman_»23-Jun-14 2:36
professional«_Superman_»23-Jun-14 2:36 
GeneralRe: how to get rid of this error *** fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory ***** Pin
Member 1089437823-Jun-14 2:47
Member 1089437823-Jun-14 2:47 
GeneralRe: how to get rid of this error *** fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory ***** Pin
leon de boer29-Jun-14 17:23
leon de boer29-Jun-14 17:23 
QuestionRe: how to get rid of this error *** fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory ***** Pin
David Crow23-Jun-14 6:01
David Crow23-Jun-14 6:01 
AnswerRe: how to get rid of this error *** fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory ***** Pin
Member 109213042-Jul-14 22:03
Member 109213042-Jul-14 22:03 
QuestionMFC small help please Pin
dan6060622-Jun-14 20:27
dan6060622-Jun-14 20:27 
AnswerRe: MFC small help please Pin
«_Superman_»22-Jun-14 20:48
professional«_Superman_»22-Jun-14 20:48 
GeneralRe: MFC small help please Pin
dan6060622-Jun-14 22:32
dan6060622-Jun-14 22:32 
GeneralRe: MFC small help please Pin
_Flaviu23-Jun-14 22:10
_Flaviu23-Jun-14 22:10 
Questioncan be p[-1] dereferenced? Pin
sakthimuhuu22-Jun-14 18:54
sakthimuhuu22-Jun-14 18:54 
AnswerRe: can be p[-1] dereferenced? Pin
«_Superman_»22-Jun-14 20:22
professional«_Superman_»22-Jun-14 20:22 
AnswerRe: can be p[-1] dereferenced? Pin
Jochen Arndt22-Jun-14 21:00
professionalJochen Arndt22-Jun-14 21:00 
AnswerRe: can be p[-1] dereferenced? Pin
CPallini22-Jun-14 22:16
mveCPallini22-Jun-14 22:16 
GeneralRe: can be p[-1] dereferenced? Pin
sakthimuhuu24-Jun-14 2:11
sakthimuhuu24-Jun-14 2:11 
QuestionRe: can be p[-1] dereferenced? Pin
CPallini24-Jun-14 2:21
mveCPallini24-Jun-14 2:21 
AnswerRe: can be p[-1] dereferenced? Pin
Satya Chamakuri12-Aug-14 21:38
Satya Chamakuri12-Aug-14 21:38 
QuestionDirectShow not showing mp4 & WndProc Not working Pin
AmbiguousName20-Jun-14 1:23
AmbiguousName20-Jun-14 1:23 
Hello. I am trying to play video file using DirectShow found on this MSDN reference. I am facing two problems.
1- local H264 video doesn't get rendered properly. A frame shows and them some blocks keep showing.
2- Can not get notifications on my dialog window using WndProc. Using this sample.

I am using following code for getting events.
C++
void CDShowPlayerSampleDlg::OnStartPlay()
{
	CPlayer::m_hWndPlayerDlg = this->m_hWnd; // MainDlg->m_hWnd
	BOOL bResult = m_objPlayer.StartPlay(); // CPlayer m_objPlayer;
}

LRESULT CDShowPlayerSampleDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
  switch(wParam) // lParam or wParam ?????????
  {
    case WM_GRAPHNOTIFY:
  }
  /* rest of the code here*/
}

Now I am setting the event notifications on the IGraphBuilder like this (in CPlayer).
HRESULT hResult = m_pGraphBuilder->QueryInterface(IID_IMediaEventEx, (void**)&m_pEvent);
hResult = m_pEvent->SetNotifyWindow((OAHWND)m_hWndPlayerDlg, WM_GRAPHNOTIFY, 0);


1- So why can not I get notifications in CDShowPlayerSampleDlg::WindowProc?
2- And why is that Windows Media Video (.wmv) file plays correctly but H264 does not. What could I do for smooth H264 playback?
Thanks for any pointers.

This world is going to explode due to international politics, SOON.


modified 20-Jun-14 8:18am.

AnswerRe: Can not Get Notification using WndProc Pin
Richard MacCutchan20-Jun-14 1:30
mveRichard MacCutchan20-Jun-14 1:30 
GeneralRe: Can not Get Notification using WndProc Pin
AmbiguousName20-Jun-14 2:04
AmbiguousName20-Jun-14 2:04 

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.