CoCreateInstance Error Code: 80040154
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: CoCreateInstance Error Code: 80040154

  1. #1
    Join Date
    Mar 2010
    Posts
    42

    CoCreateInstance Error Code: 80040154

    Hi all,

    I am trying to do this one: http://blogs.msdn.com/rslaten/archiv...he-MP-API.aspx and I am experiencing an error regarding CoCreateInstance. It returns the error code 80040154.

    I did some research and I think that this means 'class is missing'. However, I followed all the steps in the link, placing the #include "SmsMsgAPI.h", #include "SmsMsgAPI_i.c". However, I did not register the smsmsgapi.dll using regsvr32.

    The reason I did not was because I am running this code in a Windows Pre-Installation Environment 64-bit. I tried to register it but it failed because it does not have 32 bit support.

    Do you think that this is why the CoCreateInstance returns that error code?

    Thank you!

  2. #2
    Join Date
    Feb 2005
    Posts
    2,160

    Re: CoCreateInstance Error Code: 80040154

    0x80040154 is "Class Not Registered" so I would say "Yes".

  3. #3
    Join Date
    Mar 2010
    Posts
    42

    Re: CoCreateInstance Error Code: 80040154

    Hi hoxsiew, thanks for replying.

    Yes, that seems to be the problem. Thank you for confirming.

    What I did was create another Win PE, but this time, 32 bit version, since the needed dll file (smsmsgapi.dll) was for 32 bit. I then registered the smsmsgapi.dll in it and it finally works around that part.

    Thank you!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center