title: Problem creating simple "windows script components" on Windows 7
body: <p>I'm trying to get a Windows Script Component working on and x64 development machine. Works fine on x32 bit. But can't seem to get it running, I have the same problem with both JScript and VBScript.</p>
  
  <p>Here's the most simple wsc component possible. All that it does it pop up "Hello" in a message box. If you save the snippit below to a file called test_lib.wsc, you'll then be able to right click and register it. It's now available as a COM Component.</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;component&gt;
  &lt;?component error="true" debug="true"?&gt;
  &lt;registration
      description="Test Script Library"
      progid="TestScript.Lib"
      version="1.00"
      classid="{314042ea-1c42-4865-956f-08d56d1f00a8}"
  &gt;
  &lt;/registration&gt;
  &lt;public&gt;
    &lt;method name="Hello"&gt;
    &lt;/method&gt;
  &lt;/public&gt;
  &lt;script language="VBScript"&gt;
  &lt;![CDATA[
  Option Explicit
  Function Hello()
      MsgBox("Hello.")
  End Function
  ]]&gt;
  &lt;/script&gt;
  &lt;/component&gt;
  </code></pre>
  
  <p>Next create the following sample vb-script and save it to a file called test.vbs</p>
  
  <pre><code>dim o
  set o = createobject("TestScript.Lib")
  o.hello()
  </code></pre>
  
  <p>When I run the test.vbs with cscript or wscript I always get the following.
  "C:\test.vbs(3, 1) Microsoft VBScript runtime error: ActiveX component can't create object: 'TestScript.Lib'"</p>
  
  <p>This works perfectly fine on a 32 bit XP. 
  Anyone got any ideas about what could be wrong?</p>
  
  <p>Thanks a bunch
  Noel.</p>