Reputation: 7325
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..
Set img = New ImageFile
img.LoadFile mainform.picturePath & stock & ".jpg"
seems like i cannot create a new ImageFile
and getting this crazy error report.
I tried more than several dll registering.
I also tried updating DirectX to 9.0c and re installed vb6 - office components..
But still getting the error. I dont know what could be causing that.
Upvotes: 2
Views: 3140
Reputation: 645
I'm not sure your reference is correct here. ADO does not have an ImageFile type.
I think what you want is the Windows Image Acquisition Automation Library
After installing you can update your references in the VB project and should be able to correctly create an instance of an ImageType.
Upvotes: 3