-
May 15th, 2010, 10:58 AM
#1
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!
-
May 15th, 2010, 11:21 AM
#2
Re: CoCreateInstance Error Code: 80040154
0x80040154 is "Class Not Registered" so I would say "Yes".
-
May 16th, 2010, 10:57 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|