jml wrote:
1. Is XPCOM binary compatible with COM/OLE?XPCOM uses vtbls as well as its binary format. How compatiblity XPCOM is wrt COM/OLE, i am not sure.
In swt, it use vtbl to call COM/OLE methods. I want to just use that provided by swt, then I needn't write my native code.
What native code would you have to write if XPCOM wasn't compatible with COM/OLE. I am not sure I completely follow.
2. what is the "string"/"wstring"/"domstring" mean in XPCOM?These types map to the AString and ACString. Take a look at the nsEmbedString for a very light implementation of this virtual class.
What is the binary format of each of them? Since I need to package the java String into a memory buffer then pass the pointer of the buffer to XPCOM methods, so I need to know the format for this buffer.
http://lxr.mozilla.org/seamonkey/source/xpcom/glue/standalone/nsEmbedString.cpp#40
3. Is there anything similiar to IDispatch? How I do dynamically get property and call methods?Nothing for public comsumption. Note that there has been some work done to allow communication with COM objects that support IDispatch interfaces. However, there is nothing in XPCOM that directly supports a IDispatch like interface.
4. How does nsIComponentRegistrar.enumeratoeContractID work?I just posted a response to this in the .xpcom newsgroup. (The contract id enumeration can be QI'ed for nsISupportsCString. The cid enumeration can be QI'ed for a nsISupportsID.)
What will the nsISimpleEnumerator.getNext() return then? It seemed in mozilla, the documentation is too little.
Registered by what or how?5. How I make the webbrowser component to be registered?
Have you taking a look a the embedding documentation. It explains many parts of the Gecko system which will aide you in embedding Gecko into swt.
http://www.mozilla.org/projects/embedding/
Regards,
Doug Turner
[EMAIL PROTECTED]
