Take the Flash control as an example: 1. Contains related files: #include #include 2. Import ShockWaveFlash Type Library: #import "C: / Windows / System32 / Macromed / Flash / Flash. ocx "using namespace ShockwaveFlashObjects; 3.WinMain are initialized: AtlAxWinInit (); 4 add a ActiveX Control, select ShockwaveFlash Object5 its operation:. CAxWindow wndFlash = GetDlgItem (IDC_FLASH); CComPtr p; HRESULT hr =. M_Flash.QueryControl (_ UUIDOF (IshockWaveFlash), (LPVOID *) & P); if (succeeded (hr)) {P-> PUT_MOVIE (CCOMBSTR (_T ("c: //1.swf")))); P-> Play ();