title: How to solve Run-Time Error '429 : Activex component can't create object' in VB6?
body: <p>I ve seen a lot of questions about this but still couldnt find a solution for my code.
  I had this problem in VB6 while debugging.. </p>
  
  <pre><code>Set img = New ImageFile
  img.LoadFile mainform.picturePath &amp; stock &amp; ".jpg"
  </code></pre>
  
  <p>seems like i cannot create a new <code>ImageFile</code> and getting this crazy error report.</p>
  
  <p>I tried more than several dll registering.</p>
  
  <p>I also tried updating DirectX to 9.0c and re installed vb6 - office components..</p>
  
  <p>But still getting the error. I dont know what could be causing that.</p>