Results 1 to 12 of 12

Thread: [RESOLVED] COM problems

  1. #1

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Resolved [RESOLVED] COM problems

    Code:
    JiwaInventory.clsInventory inventory = new JiwaInventory.clsInventoryClass();
    JiwaInventory is a COM dll.
    the code generates the following error: "Retrieving the COM class factory for component with CLSID {7DCA24D5-2378-400F-875A-6B9DDF7610E2} failed due to the following error: 80040154."

    can anyone tell me what the error means (or where i could find out)? i have no documentation for the COM object.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

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

    Re: COM problems

    Not too sure about your specifics but I found some hits on msdn that may help -
    http://search.microsoft.com/results....-US&q=80040154
    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

  3. #3

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: COM problems

    thanks for the help, but couldn't find anything useful.

    where would i find out what error 80040154 means?
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: COM problems

    According to a forum post from one of the results of Rob's search, that error code means "class not registered". I can't vouch for the verisimilitude of that information though.

    (Always wanted to use that word. Any Star Trek: Voyager fans may recall Tuvok having used it once... or they may have a life.)
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: COM problems

    Quote Originally Posted by jmcilhinney
    According to a forum post from one of the results of Rob's search, that error code means "class not registered". I can't vouch for the verisimilitude of that information though.

    (Always wanted to use that word. Any Star Trek: Voyager fans may recall Tuvok having used it once... or they may have a life.)
    i tried running "regsvr32 Interop.JiwaInventory.dll", but it gave the error "Interop.JiwaInventory.dll was loaded, but the DllRegisterServer entry point was not found. This file cannot be registered."
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: COM problems

    That is a .NET assembly. You don't register .NET assemblies. You need to register the COM library that that assembly is designed to allow you to INTEROPerate with.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: COM problems

    i tried registering the COM library associated with the .NET assembly but i got the same error.

    where can i find a list of all COM objects that have been registered with windows?
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: COM problems

    I have limited knowledge when it comes to COM. You now know what I (think I) know. I'll leave you at the mercy of others from here.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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

    Re: COM problems

    Usually you can find out what the variaous meanings of the error code is by searching MS like I did.

    Here are 7 more hits at MS.
    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

  10. #10

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: COM problems

    thanks for the help on this...

    it seems like the error code means the class is not registered (as posted by jm), but when i register the class with regsvr32 the same error appears.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

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

    Re: COM problems

    Yes, but I think John posted in #6 about this. Maybe he can elaborate?
    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

  12. #12

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: COM problems

    problem solved!

    i removed the reference to the interop dll and added a reference to the COM dll, so VS would create a new interop dll.

    must have been a problem somewhere in the old interop dll.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

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