// This goes past the ATL includes #import "C:/WINDOWS/system32/Macromed/Flash/Flash9e.ocx" named_guids, rename_namespace("Flash") Flash::IShockwaveFlash * flash = NULL; hr = spDispatch->QueryInterface(__uuidof(Flash::IShockwaveFlash), (void **) &flash); flash->GetVariable("VariableName"); flash->SetVariable("VariableName", "String Value");