View Full Version : Global Grabber object

January 5, 2008, 15:42:39
Hi there

It seems it is not possible to define a Grabber object at a global file object althought it would compile without error but when executing it would hanges.


Stefan Geissler
January 7, 2008, 09:47:16
Hi WK,

You are right, especially if you use DLLs like in your case. But passing a pointer of the Grabber object instance to your DLL is quite simple.

You only need

DShowLib::Grabber *pGrabber;

in your DLL. The Grabber object instance in your main program is passed as &m_Grabber to the DLL.