Sorry for wasting everybody's time, it was completely my fault.


When compiling I commented out GetNextSibling that didn't passed compilation (should be 'undef'ed after including <windowsx.h>) and this resulted in different vtable interpretations. Obviously, MfcEmbed worked because is was compiled before commenting out the method.

Anton Bar wrote:

Hi all,

This is in addition to my previous message posted yesterday called "Failed to call XPCOM.."

I've tried the same code in MfcEmbed sample and it works fine.
I've compared all preproc values and they are very similar.
I've also compared the included files, they are the same.


I will very appreciate any kind of help.





Previous message: ------------------

I'm trying to call XPCOM from my Gecko plugin (based on the Scriptable
plug-in sample).

The problem is that CreateElement function fails with a strange message
"The value of ESP was not properly saved..." (please see the attached
image for the full error string).

When I step in CreateElement I see that the program actually goes to GetDocumentElement!?

I suppose it has smth to do with different call conventions used in plugins and in embedding applicaitons, but it's just a guess.
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to