AtlAxCreateControl
Visual Studio 2008
Creates an ActiveX control, initializes it, and hosts it in the specified window.
ATLAPI AtlAxCreateControl( LPCOLESTR lpszName, HWND hWnd, IStream* pStream, IUnknown** ppUnkContainer );
This global function gives you the same result as calling AtlAxCreateControlEx( lpszName, hWnd, pStream, NULL, NULL, NULL, NULL );.
To create a licensed ActiveX control, see AtlAxCreateControlLic.
Note: