Which windows component and what kind of html-file?
ATL:...
HRESULT __declspec(dllimport) WINAPI AtlGetVersion(void* pReserved);
HRESULT __declspec(dllimport) WINAPI AtlAxWinInit(void);
HRESULT __declspec(dllimport) WINAPI AtlAxGetControl(HWND h,IUnknown** pp);
HRESULT __declspec(dllimport) WINAPI AtlAxCreateControl(
LPCOLESTR lpszName,HWND hWnd,IStream* pStream,IUnknown** ppUnkContainer);
#pragma comment(lib, "atl.lib")
...
AtlAxWinInit();
// DWORD ver = AtlGetVersion(NULL);
hAxWnd = CreateWindow("AtlAxWin",
"file://C:/temp/MoveToCpp.htm"
// "http://www.pellesc.de"
,WS_CHILD|WS_VISIBLE, 0, 0, 0, 0, hWnd, NULL,
GetModuleHandle(NULL), NULL);
AtlAxGetControl(hAxWnd, &pUnk);
...