Is there any way to build in the same dll a COM and XPCOM object? I tried to start with msdev 6.0 (sp 6, Platform SDK - winxp sp 2) an empty COM project. Then, I tried to follow the steps in this tutorial: http://www.iosart.com/firefox/xpcom/, but the compiler rise this error for my DemoComponent XPCOM object:
<code> IDemoComponent.idl c:\Program Files\gecko-sdk\idl\nsrootidl.idl(44) : error MIDL2025 : syntax error : expecting an interface name or DispatchInterfaceName or CoclassName or ModuleName or a COM object name or LibraryName or a type specification near "%" c:\Program Files\gecko-sdk\idl\nsrootidl.idl(44) : error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation </code> I found on some other web resource that I should use xpidl.exe for this component by altering the .dsp file of my project in this way: <code> # Begin Project # PROP AllowPerConfigDependencies 0 # PROP Scc_ProjName "" # PROP Scc_LocalPath "" CPP=cl.exe MTL=xpidl.exe XMTL=xpidl.exe RSC=rc.exe .... SOURCE=.\IDemoComponent.idl # ADD XMTL -m header -I "C:\Program Files\gecko-sdk\idl" IDemoComponent.idl # End Source File # Begin Source File </code> but I get the same error. Anyway, it seems the problem is bigger: I tried to add some windows resources to the empty XPCOM dll (no COM this time, just a plain windows dialog), but the XPCOM component failed to register. So, is there any way to hack the msdev 6.0 (or should I use different compiler) to support also win-related stuff (I really need my custom skinned Windows dialogs which cannot be created with xul)? Thanks. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
