title: Javascript ActiveX cant load object
body: <p>i cant get my page to work. On loading a page i get error in this line <code>tscontainer = new ActiveXObject('BDATuner.SystemTuningSpaces');</code> any ideas why i get this error and how to start my page to work?</p>
  
  <p>I am using IE8. </p>
  
  <p>msvidctl.dll can be found in 2 directories:
  C:\WINDOWS\system32</p>
  
  <p>C:\WINDOWS\RegisteredPackages{AA936DF4-2B08-4B1F-B071-72192E287704}</p>
  
  <pre><code>&lt;HTML&gt;
  &lt;HEAD&gt;
  &lt;SCRIPT language=Javascript&gt;
  
  
  var tscontainer, ts, tr, locator;
  
  function window_onload(){
      tscontainer = new ActiveXObject('BDATuner.SystemTuningSpaces');
      ts = tscontainer('DVB-T');
      //ts = tscontainer('Nero DVBT Tuning Space');
      //ts = tscontainer('KWORLD_DVBT');
      tr = ts.CreateTuneRequest();
      locator = new ActiveXObject('BDATuner.DVBTLocator');
      tr.SID = -1;
      tr.TSID = -1;
      tr.ONID = -1;
      locator.Bandwidth = 8;
      locator.CarrierFrequency = 762000;
      tr.Locator = locator;
      //MSVidCtl.MaintainAspectRatio = 'True';
      MSVidCtl.View(tr);
      MSVidCtl.Run();
      currentchannel.value = tr.Locator.CarrierFrequency;
  }
  
  function channel_enter(){
      tr.Locator.CarrierFrequency = currentchannel.value;
      MSVidCtl.View(tr);
      currentchannel.value = tr.Locator.CarrierFrequency;
  }
  
  
  &lt;/Script&gt;
  &lt;/HEAD&gt;
  &lt;BODY BGCOLOR="#000001" TEXT="#FFFFFF" LINK="#FCCB7A" VLINK="#551A8B" ALINK="#EE0000" onLoad="window_onload()"&gt;
  &lt;CENTER&gt;
  &lt;OBJECT ID="MSVidCtl" CLASSID="CLSID:B0EDF163-910A-11D2-B632-00C04F79498E" Width="800" Height="600"&gt;&lt;/OBJECT&gt;
  &lt;HR&gt;&lt;B&gt;FREQUENCY: &lt;/B&gt;&lt;INPUT TYPE="text" id=currentchannel maxlength=7 SIZE=7&gt;
  &lt;INPUT id=enter type=button value="APPLY" onClick="channel_enter()"&gt;
  &lt;/CENTER&gt;
  &lt;/BODY&gt;
  &lt;/HTML&gt;
  </code></pre>