[dev] Please help for creating com.sun.star.awt.Toolkit service

2008-06-19 Thread Rainman Lee
hello everyone, I'm trying to use uno controls independently without OO runing. but when I try to create the com.sun.star.awt.Toolkit service in my program, it crashes. I have tried to create other services (e.g. UnoButtonModel), and it seeems ok. I use OOo 2.4 on windows platform with Visual C++ f

Re: [dev] Please help for creating com.sun.star.awt.Toolkit service

2008-06-19 Thread Rainman Lee
Bergmann <[EMAIL PROTECTED]> wrote: > Eike Rathke wrote: > >> Hi Rainman, >> >> On Thursday, 2008-06-19 16:13:01 +0800, Rainman Lee wrote: >> >> [...] >>>Reference xInterface = >>> >>> xMultiFactory.get()-&

Re: [dev] Please help for creating com.sun.star.awt.Toolkit service

2008-06-20 Thread Rainman Lee
on my computer or I can just download it somewhere. thank you, and hope your reply. best wishes, Rainman. On Thu, Jun 19, 2008 at 11:14 PM, Carsten Driesner <[EMAIL PROTECTED]> wrote: > Rainman Lee wrote: > >> hello everyone, >> I'm trying to use uno controls in

[dev] "error: cannot run /bin/sh" when runing OOo 2.4.x build configure

2008-06-20 Thread Rainman Lee
hi everyone, I was trying to build OOo 2.4.x on my Windows platform using Cygwin. after I ran "bash configure --with-win32", in config_office directory, it reported: configure: error: cannot not run /bin/sh ../solenv/bin/config.sub what's wrong with it? does that mean there was lack of sh in my b

[dev] ERROR: "can't rename temporary file..." when building BEA300_m2

2008-06-28 Thread Rainman Lee
hi, everyone when building BEA300_m2 on Windows platform with VC9, during the job "external_deliver" in modual "external", I got the following error: deliver: /cygdrive/f/CoreProjects/BEA300_m2/external/prj/d.lst: ERROR: can't rename temporary file to f:/CoreProjects/BEA300_m2/solver/300/wntmsci1

Re: [dev] Please help for creating com.sun.star.awt.Toolkit service

2008-06-28 Thread Rainman Lee
hi Carsten, it's ok. but I still think that there might be something not initialized though it's not VCL. thank you very much, I will keep trying to find the murderer. ;) best wishes, Rainman. On Fri, Jun 20, 2008 at 8:59 PM, Carsten Driesner <[EMAIL PROTECTED]> wrote: >

[dev] is there a THREAD-MODEL in URE?

2008-07-04 Thread Rainman Lee
hi, everyone I noticed that there was some articles about Threading Model, and Threading Architecture In URE. but I cannot find any technical detail about how to use them, so I just wondered whether they have been implemented in URE or they are just about to be implemented. thank you. best wishes

[dev] How can I add a interface upon a published service?

2008-07-08 Thread Rainman Lee
hello everyone, I have a question about extending a published service. supposing that there is a published service S, which derives from a Multi-Inheritance Interface C, which inherits from A and B, like that: interface A { ... }; interface B { ... }; interface C { interface A; interface B;

[dev] How can I reuse the implementation of a service?

2008-07-12 Thread Rainman Lee
hello everyone, I defined a interfaces tree like this: XWindow | | XButton | | XImageButton and I have implemented XWindow in my Window service. now I want to implement XButton, XImageButton respectively in Button, ImageButton services. Is there a convenient method with which

Re: [dev] How can I reuse the implementation of a service?

2008-07-22 Thread Rainman Lee
is my Button that inherits XSomeInterface cant reuse Window implementation. On Wed, Jul 16, 2008 at 1:11 AM, Mathias Bauer <[EMAIL PROTECTED]> wrote: > Rainman Lee wrote: > >> hello everyone, >> I defined a interfaces tree like this: >> >> XW

[dev] the NEW STYLE service may import great complexity to implementation.

2008-07-30 Thread Rainman Lee
Hey everyone! We are developing our products upon UNO component model. One of the big problem we have met is how to implement a service which declared by the NEW STYLE statement. For example: XA- | || |XB

Re: [dev] Re: the NEW STYLE service may import great complexity to implementation.

2008-08-10 Thread Rainman Lee
the problem here is the circle inheritance of the interfaces.when this situation occurs, the derived class must reimplements all repeatedly inherited interfaces even if you use the helper class. On Fri, Aug 1, 2008 at 10:49 PM, Michael Stahl <[EMAIL PROTECTED]> wrote: > Frank Schönheit - Sun Micro

Re: [dev] How can I reuse the implementation of a service?

2008-08-10 Thread Rainman Lee
certainly I could, but this solution is much complex and hardly to maintain.It would be a terrible dream if XWindow interface have dozens of methods. Best Wishes, Rainman. On Mon, Aug 4, 2008 at 3:17 PM, Mathias Bauer <[EMAIL PROTECTED]> wrote: > Rainman Lee wrote: >

Re: [dev] the NEW STYLE service may import great complexity to implementation.

2008-08-10 Thread Rainman Lee
Hi Frank, Thank you for your replay. Hoping to see your marcos soon~ hehe. Best Wishes, Rainman. On Fri, Aug 1, 2008 at 5:15 AM, Frank Schönheit - Sun Microsystems Germany <[EMAIL PROTECTED]> wrote: > Hello Rainman, > >> We are developing our products upon UNO component model. >> One of the big p

[dev] Simplify Reference Casts by template constructors

2009-03-10 Thread Rainman Lee
Hi everyone, After a period of time of developing with URE, I find the C++ UNO class Reference is not very comfortable for use sometime. The problem is, when I have a reference of base interface XA and a reference of derived interface XB, I can't make xA = xB directly. Instead I have to query XA fr

Re: [dev] Simplify Reference Casts by template constructors

2009-03-11 Thread Rainman Lee
Thank you Frank, you are right, get() is enough. I haven't seen it before;) On Wed, Mar 11, 2009 at 4:05 PM, Frank Schönheit - Sun Microsystems Germany wrote: > Hi Rainman, > >> After a period of time of developing with URE, I find the C++ UNO >> class Reference is not very comfortable for use so

Re: [dev] Simplify Reference Casts by template constructors

2009-03-11 Thread Rainman Lee
Hey Frank, I have another ideal, it is better and safer than the last one I mentioned. I add a conversion operator to Reference, instead of a constructor, here is it: template < class base_interface_type > inline SAL_CALL operator const Reference< base_interface_type > () const SAL

Re: [dev] Simplify Reference Casts by template constructors

2009-03-11 Thread Rainman Lee
Hi Frank, No, I did not compile the OOo yet. I have only recompile our product which was developed completely upon URE. It seems that is compatible with existing code well. On Wed, Mar 11, 2009 at 7:19 PM, Frank Schönheit - Sun Microsystems Germany wrote: > Hi Rainman, > >> I have another ideal,

Re: [dev] Simplify Reference Casts by template constructors

2009-03-11 Thread Rainman Lee
Hi Andrew I know that implicit conversions usually bring more side effects than convenience. But it is not the reason that we should give all them up I think ;) There is no implicit conversion from std::string to const char*, because if a string is destroyed, the pointer to its content will be inva

[dev] How to avoid DLL is unloaded before Reference is released?

2009-04-07 Thread Rainman Lee
Hi everyone! I implement services in a dll, but sometimes, the dll is unloaded by the system before References to the services are released.(other dll may have the References) When these References are used to call some methods, unpredictable problem may occur, because global variables in that dll