|
-
Jan 19th, 2009, 10:03 PM
#1
[RESOLVED] Create object error
I moved my project from a Vista Machine to a XP machine. This code has been running fine.
Now I'm getiing an error "ActiveX component can't create object" on this line
Code:
Dim vecImage As WIA.Vector
Dim ipStamp As WIA.ImageProcess
Dim lngPixel As Long
'Load icon ResIndex into Vector.
Set vecImage = New WIA.Vector <--- ERROR HAPPENS HERE
The reference to "Microsoft Windows Image Acquisition Library v2.0" is set and seems fine.
Any ideas? I must be missing something.
Thanks for any help
-
Jan 20th, 2009, 12:05 AM
#2
Re: Create object error
On my Vista machine, in the IDE, under Components, it has "Microsoft Windows Image Acquisition Library v2.0" as a choice.
On my XP machine, in the IDE, under Components it DOESN'T have "Microsoft Windows Image Acquisition Library v2.0" as a choice. It is listed in the References.
Could this be the problem?
Thanks
-
Jan 20th, 2009, 03:03 AM
#3
Re: Create object error
Try checking the references and component objects path as it may have been different on the Vista system.
Last edited by RobDog888; Jan 20th, 2009 at 03:13 AM.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 20th, 2009, 11:17 AM
#4
Junior Member
Re: Create object error
You need to register the ActiveX on the new machine. Run the regsvr32 from the command prompt followed by the ActiveX name from the directory where the ActiveX exists.
-
Jan 20th, 2009, 11:46 AM
#5
Re: Create object error
if it wasn't registered, it wouldn't be listed in the components or references...
But, I have to wonder why in one place it's under Components (which are usually controls or other componets that are dropped onto a form) in one place, and under References (which are typically non-ui type references, dlls and the like) in another...
-tg
-
Jan 20th, 2009, 12:49 PM
#6
Re: Create object error
Thanks for the replys,
I could not register or unregister the "wiaaut.dll" , I keep getting a file not found error. So, I downloaded an older 2002 version of wiaaut.dll. It came with a .chi and .chm file that had to be put in the windows\help folder. Then the dll registered without a problem and the app works fine.
Thanks again
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|