Recent

Author Topic: TService application  (Read 13815 times)

mem

  • New member
  • *
  • Posts: 9
TService application
« on: December 11, 2007, 01:27:23 pm »
Is it possible to create a service application with Lazarus?
Like Delphi does with TService from SvcMgr.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: TService application
« Reply #1 on: December 11, 2007, 01:58:44 pm »
Try using the lazdeamon package from lazarus\components\daemon.

For an example, see lazarus\examples\cleandir.

mem

  • New member
  • *
  • Posts: 9
RE: TService application
« Reply #2 on: December 11, 2007, 02:59:17 pm »
Thanx. I will try that.

How about unicode? Even with the right font my button with caption ڔژڛۂ shows the caption as question marks.
I thought unicode was enabled by default?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: TService application
« Reply #3 on: December 11, 2007, 03:21:21 pm »
Unicode is not yet enabled by default on windows.

mem

  • New member
  • *
  • Posts: 9
RE: TService application
« Reply #4 on: December 11, 2007, 03:40:37 pm »
Ah, I thought this was an advantage of Lazarus over Delphi.
When will unicode be enabled by default?

And how do I enable unicode in Lazarus now? I have a TMS Unicode Components subscription, but hope an extra component set will not be nessescary..

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: TService application
« Reply #5 on: December 11, 2007, 03:44:15 pm »
How to enable: see http://wiki.lazarus.freepascal.org/LCL_Unicode_Support#Compiling_LCL-Win32_with_Unicode

It will be enabled, when the components work correctly with unicode.

You are welcome to test and make bug reports for the missing gaps. I don't see them as easily as you, because English and my language doesn't use lot's of characters that need unicode.

mem

  • New member
  • *
  • Posts: 9
RE: TService application
« Reply #6 on: December 11, 2007, 03:58:10 pm »
The editor doesn't support Unicode.

If I type the following code:

ShowMessage('ъюђйгф');

The editor shows question marks.

  ShowMessage('??????');

This is a basic problem that need to be fixed first.
http://www.freepascal.org/mantis/view.php?id=10399
(The bug reporting tool doesn't support unicode too) :-)

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: TService application
« Reply #7 on: December 11, 2007, 04:15:46 pm »
Did you recompile the IDE for unicode support?

mem

  • New member
  • *
  • Posts: 9
TService application
« Reply #8 on: December 11, 2007, 04:18:40 pm »
w00t! No, I'm just a user..

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
TService application
« Reply #9 on: December 11, 2007, 04:21:37 pm »
Sorry, I assumed you could read. ;-)

mem

  • New member
  • *
  • Posts: 9
TService application
« Reply #10 on: December 11, 2007, 04:35:31 pm »
Well, I think I rebuild the IDE, but the problem exists. Still the question marks:
  ShowMessage('???????');

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
TService application
« Reply #11 on: December 11, 2007, 04:42:36 pm »
Did you clean and build the LCL and add the -dWindowsUnicodeSupport option?

mem

  • New member
  • *
  • Posts: 9
TService application
« Reply #12 on: December 11, 2007, 05:09:44 pm »
Yes. Is there a way to verify this (other than use unicode in the code editor)?

antonio

  • Hero Member
  • *****
  • Posts: 605
TService application
« Reply #13 on: December 17, 2007, 03:48:06 pm »
Strange, my language needs Unicode support and I don't need to do anything special for it. It simply works.

 

TinyPortal © 2005-2018