求助:关于DirectShow中OAHWND的问题
小弟刚刚开始用DirectShow,在DirectX SDK中看到如下代码:
set the filter graph manager to deliver this message to the application's main window:
pEvent->SetNotifyWindow((OAHWND)g_hwnd, WM_GRAPHNOTIFY, 0);
The IMediaEventEx::SetNotifyWindow method designates the specified window (g_hwnd) as the recipient of the message. Call this method after you create the filter graph and specify the owner window, but before running the graph.
于是我在自己的程序中写下如下代码:
pEventEx->SetNotifyWindow((OAHWND)AfxGetMainWnd()->m_hWnd, WM_GRAPHNOTIFY, 0);
编译提示错误信息:“内存不能为read”;
调试提示错误信息:“Access Violation”
小弟真的不解,这其中的OAHWND到底是怎么回事?和HWND有何区别?多谢了!