title: ActiveX component can't create object. Hasp in Excel VBA
body: <p>I wanted to create object of HASP app in VBA in Excel, but I have such error:<br>
  <em>Run-time error '429': ActiveX component can't create object.</em></p>
  
  <p>I installed hasp_com_windows.dll in SYSWOW64 folder and hasp_com_windows_x64.dll in System32. I also add reference to <em>Aladdin Knowledge Systems Ltd. HASP SRM API Library</em>. </p>
  
  <p>My OS: Windows 8.1. 64 bit</p>
  
  <p>My VBA code: </p>
  
  <pre><code>Sub TestHasp()
  
  Dim haspApp As AKSHASP.HaspApplication
  Set haspApp = CreateObject("AKSHASP.HaspApplication")  'here is an error
  
  End Sub
  </code></pre>
  
  <p>Here are these dll files: <a href="http://www.sendspace.com/filegroup/AS4D4qx7so1uLoxHD%2Fbq7g" rel="nofollow">hasp dll</a></p>
  
  <p>=======<br>
  Edit:<br>
  When I use: </p>
  
  <pre><code>Dim haspApp as new AKSHASP.HaspApplicaton
  </code></pre>
  
  <p>I get: <em>Compile error: User-defined type not defined.</em></p>