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: > Rainman Lee wrote: >> >> t

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

2008-06-20 Thread Carsten Driesner
Rainman Lee wrote: thank you very much Carsten! I will try it. but, I guess i was missing something by far. I notice that there is a InitVCL call, in the file you mentioned. but it seems that it need something like a static or dynamic lib to get it work. where can I get such a lib, should I compi

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

2008-06-20 Thread Caolan McNamara
On Fri, 2008-06-20 at 12:28 +0200, Eike Rathke wrote: > Hi Stephan, > > On Thursday, 2008-06-19 14:30:09 +0200, Stephan Bergmann wrote: > > > On Windows, the L"..." version should also work, by accident. > Highly unportable though. gcc has a -fshort-wchar feature (like mozilla uses) and SunPr

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

2008-06-20 Thread Eike Rathke
Hi Stephan, On Thursday, 2008-06-19 14:30:09 +0200, Stephan Bergmann wrote: > On Windows, the L"..." version should also work, by accident. > (sal_Unicode is a typedef for wchar_t there, and there is a non-explicit > rtl::OUString(sal_Unicode const *) ctor). Ah, that explains why a compiler

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

2008-06-20 Thread Rainman Lee
thank you very much Carsten! I will try it. but, I guess i was missing something by far. I notice that there is a InitVCL call, in the file you mentioned. but it seems that it need something like a static or dynamic lib to get it work. where can I get such a lib, should I compile the vcl project on

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

2008-06-19 Thread Carsten Driesner
Rainman Lee wrote: 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 platf

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

2008-06-19 Thread Rainman Lee
I just googled my problem, and there was a same problem 3 years ago.( http://osdir.com/ml/openoffice.devel.udk/2005-09/msg00076.html) but unfortunately, no solution at that time. Is there someone kind can fix it today? thanks again. best wishes, Rainman On Thu, Jun 19, 2008 at 8:30 PM, Stephan Be

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

2008-06-19 Thread Stephan Bergmann
Eike Rathke wrote: Hi Rainman, On Thursday, 2008-06-19 16:13:01 +0800, Rainman Lee wrote: [...] Reference xInterface = xMultiFactory.get()->createInstanceWithContext(L"com.sun.star.awt.Toolkit", m_xContext); [...] when the component is runing, it shows the first two message boxes as ex

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

2008-06-19 Thread Eike Rathke
Hi Rainman, On Thursday, 2008-06-19 16:13:01 +0800, Rainman Lee wrote: > [...] > Reference xInterface = > xMultiFactory.get()->createInstanceWithContext(L"com.sun.star.awt.Toolkit", > m_xContext); > [...] > when the component is runing, it shows the first two message boxes as > expected,

[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