|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.dwt - XPCOM how to port?
In DWT-Linux the browser component is originally implemented using XPCOM. XPCOM is C++ and Java uses a C++ wrapper lib to make it have JNI C functions. Is there a way to port this, without the need to make a wrapper lib in D1.x? Mar 04 2008
Frank Benoit wrote:In DWT-Linux the browser component is originally implemented using XPCOM. XPCOM is C++ and Java uses a C++ wrapper lib to make it have JNI C functions. Is there a way to port this, without the need to make a wrapper lib in D1.x? Mar 04 2008
John Reimer schrieb:Frank Benoit wrote:In DWT-Linux the browser component is originally implemented using XPCOM. XPCOM is C++ and Java uses a C++ wrapper lib to make it have JNI C functions. Is there a way to port this, without the need to make a wrapper lib in D1.x? Mar 04 2008
Frank Benoit schrieb:In DWT-Linux the browser component is originally implemented using XPCOM. XPCOM is C++ and Java uses a C++ wrapper lib to make it have JNI C functions. Is there a way to port this, without the need to make a wrapper lib in D1.x? Mar 05 2008
KlausO schrieb:XPCOM and COM are almost the same. The base interface IUnknown in COM has the same interface as the base interface called nsISupports in XPCOM. Even the GUID (00000000-0000-0000-C000-000000000046) is the same. see: http://developer.mozilla.org/en/docs/nsISupports "On Win32 systems, nsISupports is ABI-compatible with Microsoft COM's IUnknown interface." So you should be able to use D's COM support for interfacing. Mar 06 2008
|