Results 1 to 6 of 6

Thread: [RESOLVED] Create object error

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,513

    Resolved [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

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,513

    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

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  4. #4
    Junior Member
    Join Date
    Dec 2008
    Posts
    17

    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.

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6

    Thread Starter
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,513

    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
  •  



Click Here to Expand Forum to Full Width