[fpc-pascal] Extend multiple classes with same code

2012-05-18 Thread Zaher Dirkey
any new idea to do that, what about Helper, generics, i read about it i felt it is not fit to my problem (or i am wrong). Thanks in advance Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] Extend multiple classes with same code

2012-05-18 Thread Zaher Dirkey
an provide me and example). Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Extend multiple classes with same code

2012-05-18 Thread Zaher Dirkey
se unit. now i like to inherit both TmyFields and TmyParams to add functions work on Firebird, TmyFirebirdFields and TmyFirebirdParams, both have same functions to work on buffer SQLDA. Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.

Re: [fpc-pascal] Extend multiple classes with same code

2012-05-19 Thread Zaher Dirkey
classes. But i dont even know of a language that has such > possibility (i dont know much languages anyway). > I hope i can find one, not for me for my kids in the future ;) Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Extend multiple classes with same code

2012-05-19 Thread Zaher Dirkey
e is overridden functions. BTW thanks for you all Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] TList Notify count changed

2012-05-22 Thread Zaher Dirkey
In TList how can i notify if Count is changed with New and Old values as like in SetCount, SetCount procedure not virtual? procedure SetCount(NewCount: Integer); I am using last revision of Lazarus, FPC 2.6 Best Regards Zaher Dirkey ___ fpc-pascal

[fpc-pascal] Re: TList Notify count changed

2012-05-23 Thread Zaher Dirkey
On Tue, May 22, 2012 at 8:08 PM, Zaher Dirkey wrote: > procedure SetCount(NewCount: Integer); Might i ask to make TList.SetCount a virtual method? Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org h

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Zaher Dirkey
viewvc/minilib/trunk/lib/mnStreams.pas?view=markup Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Including binary data making easy

2012-08-27 Thread Zaher Dirkey
On Mon, Mar 23, 2009 at 6:22 PM, Graeme Geldenhuys wrote: > Ah, but you are missing the point. We are programmers. We do NOT forget! > :-) > I forgot that! Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal

Re: [fpc-pascal] Including binary data making easy

2012-08-27 Thread Zaher Dirkey
en use LoadResource to get it, as like lfm files Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] About Putting everything in one repo

2012-09-02 Thread Zaher Dirkey
. Same idea for Lazarus, i know Lazarus has Lazarus-ccr, for that i asked why you extending the Components directory in the official Lazarus repository. Sorry for my poor English. Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] About Putting everything in one repo

2012-09-02 Thread Zaher Dirkey
nd it is not stable. Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] About Putting everything in one repo

2012-09-02 Thread Zaher Dirkey
ink we need more searches to understand the code changes, but no problem. Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: About Putting everything in one repo

2012-09-02 Thread Zaher Dirkey
of non core packages? Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: About Putting everything in one repo

2012-09-02 Thread Zaher Dirkey
use: how can i publish my project and mentioned what snapshot must used to work or compiled?. Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: About Putting everything in one repo

2012-09-02 Thread Zaher Dirkey
:) I need more faster release versions, no need to include release a core files, only packages with minor version number, most product i used it have this release like PHP, SQLITE, FirebirdSQL. not using snapshots or SVN. Best Regards Zaher Dirkey

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-19 Thread Zaher Dirkey
hat is the problem, there is no good map in that jungle. Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-19 Thread Zaher Dirkey
index to discover the wiki. Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] differences between .pp and .pas files

2013-03-13 Thread Zaher Dirkey
___ > fpc-pascal maillist - > fpc-pascal@lists.freepascal.**org > http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal> > Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] File Association and opening with already running app

2013-04-05 Thread Zaher Dirkey
kit using Free Pascal > http://fpgui.sourceforge.net/ > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > -- I am using last revision of Lazarus, FPC 2.6 on Windo

Re: [fpc-pascal] FBLib (firebird library for FPC, Delphi and Kylix) has moved

2013-04-05 Thread Zaher Dirkey
graemeg/firebird-lib.git > > > Regards, > - Graeme - > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Z

[fpc-pascal] Free member after inherited Destroy;

2013-04-13 Thread Zaher Dirkey
Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] why connect is "deprecated"

2013-04-16 Thread Zaher Dirkey
___ >> fpc-pascal maillist - >> fpc-pascal@lists.freepascal.**org >> http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal> >> > > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Yet again Objects auto destruction

2013-04-18 Thread Zaher Dirkey
will kill that object first, because many of another object assigned to it. Ref http://lists.freepascal.org/lists/fpc-pascal/2006-August/011626.html I know about Interfaces but i hate use it, All just we need new feature to call "destroy" when freeing the object. Best Regards Za

Re: [fpc-pascal] fpGUI Toolkit v1.0 release for FPC 2.6.2

2013-04-21 Thread Zaher Dirkey
UI Toolkit - a cross-platform GUI toolkit using Free Pascal > http://fpgui.sourceforge.net/ > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] RAD Studio XE4 Released?

2013-04-24 Thread Zaher Dirkey
g > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] MS DOS 8086 compiler?

2013-04-27 Thread Zaher Dirkey
On Sat, Apr 27, 2013 at 3:11 PM, Bart wrote: > I still have a portable (ahum, > 5 kg) IBM XT with 5.25" floppy disk. > HD is appr. 10 MB (decaying...) > Yay​ Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.fr

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-02 Thread Zaher Dirkey
begin > FSocket.StopAccepting; > FSocket.Free; > inherited Destroy; > end; > -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@list

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-02 Thread Zaher Dirkey
ctions will drop, and you wait to finish that.​ -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-02 Thread Zaher Dirkey
Result := erNone; end; ​ -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-02 Thread Zaher Dirkey
On Fri, May 3, 2013 at 12:51 AM, Ewald wrote: > pthread_cancel() pthread_cancel() ​ ​ ​ not clos ​e​ the handles i though​.​ -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maill

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-03 Thread Zaher Dirkey
programmesr without using cancel it. Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-03 Thread Zaher Dirkey
On Fri, May 3, 2013 at 6:57 PM, silvioprog wrote: > when I close the server with one or more clients connected, I got a memory > leak. ​Check if the thread freed​? ​Try to stop server manually (by button or in Close event in the form)​ Best Regards Zaher

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-03 Thread Zaher Dirkey
On Fri, May 3, 2013 at 7:22 PM, Ewald wrote: > "Accept" but without errors ​You cant, Accept give you a handle of new socket or give you an error, not all is fatal error, just check what is it, if it a closed handle or shutdown.​ Best Regards

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-03 Thread Zaher Dirkey
On Fri, May 3, 2013 at 9:13 PM, Marco van de Voort wrote: > Select on the main socket before doing the accept? ​No i am not use Select before Accept, accept is blocking the thread. Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pas

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-03 Thread Zaher Dirkey
ave it to silvio to test it :P​ -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-03 Thread Zaher Dirkey
On Fri, May 3, 2013 at 11:47 PM, Zaher Dirkey wrote: > On Fri, May 3, 2013 at 11:27 PM, Marco van de Voort wrote: > >> >> That's the point. Don't. Use a select, it has a timeout, and accept only >> if >> select shows activity on the listened to socket. >

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Zaher Dirkey
r >> end; >> until ThreadTerminated; >> >> Ludo > > > Thank you! > ​If you success, tell us, i must fix my sockets too :)​ -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey

Re: [fpc-pascal] Compileability of target WinCE restored

2013-05-04 Thread Zaher Dirkey
freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal> > -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freep

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Zaher Dirkey
on who block the thread and get new connection. Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Zaher Dirkey
r/tree/socket/source/mnWinSockets.pas ​ I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Zaher Dirkey
But mnServer is works with me for a years, and there is mnHttpServer demo and it is work fine too without Select before Accept https://sourceforge.net/p/minilib/source/ci/master/tree/socket/demo/lazarus/ On Sat, May 4, 2013 at 6:05 PM, Zaher Dirkey wrote: > > On Sat, May 4, 2013 at 5

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Zaher Dirkey
/04/2013 05:05 PM, Zaher Dirkey wrote: > > > > On Sat, May 4, 2013 at 5:40 PM, Ludo Brands > <mailto:ludo.bra...@free.fr>> wrote: > > > > Can you show the code you use? You tested on Windows, linux, Mac, > ...? > > > > > > ​Only on Windows

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Zaher Dirkey
ranteed to complete *without blocking*. I still not sure in windows need Select, but maybe in Linux only, but i can't test it there. -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey __

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-06 Thread Zaher Dirkey
ate using components as GUI components, no events in my classes. -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] Re: Is THostResolver creating a thread?

2013-05-08 Thread Zaher Dirkey
, I think we have nothing to do > hehe... > > -- > Silvio Clécio > My public projects - github.com/silvioprog > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Zaher Dirkey
est Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Zaher Dirkey
memory. Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Zaher Dirkey
On Tue, Jun 18, 2013 at 6:09 PM, Marcos Douglas wrote: > But I continue to keep the XML in memory... > The easy and fast way as I can see is change the TXMLLogger class to > write a simple file text but not using DOM. > Hmm, give us a small example of that xml.​ Best Regards

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Zaher Dirkey
e the footer I mean writing directly to the file without put it in DOM or any kind of document in the memory. ​ -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc

[fpc-pascal] Clone a instance of object

2013-09-22 Thread Zaher Dirkey
object from TmyObject but in base object in Clone method,like this TBaseObject.Clone:TBaseObject; begin Result:=TBaseObject(ClassType).Create;//I know it is wrong here end; A ​ny good idea?​ -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey

Re: [fpc-pascal] Clone a instance of object

2013-09-22 Thread Zaher Dirkey
it as well. ​Yes I added assign, but as example above, it is crashed when creating it Result:=TBaseObject(ClassType).Create; -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey ___ fpc-pascal maillist

Re: [fpc-pascal] Clone a instance of object

2013-09-23 Thread Zaher Dirkey
sign) for every child class copy its field members, is there any trick to copy the values like assigning record var to another record var? I know it is kind of strange way :P ​Thanks​ ​Zaher Dirkey​ ___ fpc-pascal maillist - fpc-pasca

Re: [fpc-pascal] Clone a instance of object

2013-09-23 Thread Zaher Dirkey
veral times, it works well for most situations. > ​It is not the fastest way like assigning a record, can we ask it as a feature in FPC ?​ Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Clone a instance of object

2013-09-23 Thread Zaher Dirkey
procedure Assign(Source: TPersistent); >property a: string read F.a write F.a; > end; > ​But in derived classes fields will not assigned​? Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Clone a instance of object

2013-09-23 Thread Zaher Dirkey
igning as record assign. ​ That's the feature I like to have. ​ Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Clone a instance of object

2013-09-23 Thread Zaher Dirkey
On Mon, Sep 23, 2013 at 4:28 PM, Zaher Dirkey wrote: > ​The idea is simply than needs to use a stream or RTTI, it is like a > record, if looked at an object like as a record but it is inheritable. > ​Compile can now every object body, and do the assigning as record assign. > ​

Re: [fpc-pascal] Serial Unit for Windows

2008-07-19 Thread Zaher Dirkey
>>bm_DCB_fRtsControl = $3000. It should be $2000. >>bm_DCB_fDtrControl = $30. It should be $20. DtrControl and RtsControl have double bits so it should be as mask in same struct.inc you can see function fDtrControl(var a : DCB) : DWORD; begin fDtrControl:=(a.flags and bm_DCB

Re: [fpc-pascal] Access inherited^2

2008-08-04 Thread Zaher Dirkey
try (but i not like it ) begin TFirst(Self).Create(A, B, 0); end; ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Extended property can't have default value?

2008-10-11 Thread Zaher Dirkey
Empty String it is a default value. What if increase to size of default value to int64 so we can add default value to Currency/Double properties, and that make my exported XML more small, and it is still compatible with Delphi. ___ fpc-pascal maillist -

[fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-18 Thread Zaher Dirkey
locale. I test -Fmcp1256.txt but no chance. My language Arabic Win1256 FPC 2.2.2 Lazarus 0.25 beta -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-18 Thread Zaher Dirkey
I notice UTF8 from Delphi not Compatible with Lazarus/FPC and vise versa. It Corrupt the characters. On Sat, Oct 18, 2008 at 4:12 PM, Jonas Maebe <[EMAIL PROTECTED]> wrote: > > On 18 Oct 2008, at 14:38, Zaher Dirkey wrote: > >> Hi, i have some units shared between 2 Project

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-21 Thread Zaher Dirkey
Thanks for your answers, and just another few questions :) 1- Is "fpc -FcUTF-8" same as {$codepage utf-8}? 2- If i put {$codepage utf-8} in my unit and i have string A variable, that variable will be widestring and any ansistring assigned to it will converted to it? 3- if i has another unit

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-21 Thread Zaher Dirkey
>> 2- If i put {$codepage utf-8} in my unit and i have string A variable, >> that variable will be widestring and any ansistring assigned to it >> will converted to it? > > No, A will be a shortstring (in {$h-} mode) or ansistring (in {$h+} mode). > Only *constant* strings containing non-ASCII char

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-21 Thread Zaher Dirkey
When i started to build my projects for unicode, i expect it is like {$h-} {$h+} when we moved from Turbo Pascal to Delphi. BTW my agent ask me to make my project multi language and that solve my problem, but for small projects already made for Ansi we need that feature. _

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-21 Thread Zaher Dirkey
What for {%encoding utf-8} in the first line? On Tue, Oct 21, 2008 at 8:08 PM, Zaher Dirkey <[EMAIL PROTECTED]> wrote: > When i started to build my projects for unicode, i expect it is like > {$h-} {$h+} when we moved from Turbo Pascal to Delphi. > > BTW my agent ask me to mak

Re: [fpc-pascal] Delphi / FPC and UTF8 BOM

2008-10-23 Thread Zaher Dirkey
1 - I understand the mixed as Unit1 have class A with string variables/functions (but it will compiled as AnsiString) Unit2 have class B inherited from the A but this unit2 but now passing directive to compile it with the strings as WideString, it must not compiled correct? (bad english) 2 - What

Re: [fpc-pascal] bitwise generator

2008-12-29 Thread Zaher Dirkey
u could even just have a table with the values. >> ___ >> fpc-pascal maillist - fpc-pascal@lists.freepascal.org >> http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > > ___ &g

Re: [fpc-pascal] Apache Modules without LResources

2009-05-03 Thread Zaher Dirkey
I Agree with Giovanni, in next my project i like to use only FPC to create Apache module. -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-15 Thread Zaher Dirkey
use c:\lazarus\Lazarus.exe --pcp=x:\lazarus\config -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-16 Thread Zaher Dirkey
IDE ask to workspace in first run. Thanks -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-16 Thread Zaher Dirkey
I will make small patch(or some modify on code), i think it be more understandable more than my bad language :) -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Set of encoding conversion routines

2009-08-11 Thread Zaher Dirkey
There is unit in Lazarus lcl\LConvEncoding.pas is that you mean? -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Set of encoding conversion routines

2009-08-12 Thread Zaher Dirkey
I have my own on ported from IConv in http://www.sourceforge.net/projects/minilib check minilib\Unicodes\source I used in Wince project because WinCE not support my language locale -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] How to install SPComm in lazarus?

2009-08-19 Thread Zaher Dirkey
e any serial communition > component in lazarus? > Thanks > ___ > fpc-pascal maillist  -  fpc-pas...@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > http://www.ararat.cz/synapse/doku.php/download#synaser_s

[fpc-pascal] Is there call back function when read resourcestring

2009-11-07 Thread Zaher Dirkey
Is there call back function when read string resourcestring, like as resourcestring sHello := 'Hello'; s:= sHello; //<-- here like TWideStringManager is there a manager for resourcestring? Thanks. -- Zaher Dirkey ___ fpc-pascal mai

Re: [fpc-pascal] How to solve "variable does not seem to be initialized" compiler hint.

2009-11-18 Thread Zaher Dirkey
Related to FillChar In Delphi there is ZeroMemory, i guess it is windows API, can we have one in FreePascal to use it instead of FillChar. -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] How to solve "variable does not seem to be initialized" compiler hint.

2009-11-18 Thread Zaher Dirkey
Memory so no hint i guess. -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Forum merger

2009-12-21 Thread Zaher Dirkey
me, i like to see Pascal generate good web application, especially if it had Right To Left support :) -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] sql server embedded: sqlite the only solution?

2009-12-21 Thread Zaher Dirkey
I think you talk about Firebird embedded version 1.0, SQlite3 best than it I have Point of Sale application use Firebird 2.1 in desktop PC and Sqlite3 in Wince, the same project with same SQL statements (with a little directive for special queries). -- Zaher Dirkey

Re: [fpc-pascal] Component Writing - Registering Components with the widget set

2010-02-06 Thread Zaher Dirkey
own setters and getter like the ones in wscontrol ? > > > Just not sure if i need to use this widget bit > If your component not use the OS directly, you only need to a normal RegisterComponents. no need to care about widgets. -- Zaher Dirkey ___

Re: [fpc-pascal] MSEide+MSEgui SourceForge -> BerliOS

2010-02-06 Thread Zaher Dirkey
/sourceforge.net/blog/clarifying-sourceforgenets-denial-of-site-access-for-certain-persons-in-accordance-with-us-law/ > > Martin > Can i ask What is your country? And sorry for Off Topic -- Zaher Dirkey ___ fpc-pascal maillist

Re: [fpc-pascal] installing on RHEL5 (libtinfo)

2010-03-04 Thread Zaher Dirkey
On Thu, Mar 4, 2010 at 3:52 PM, Jonas Maebe wrote: > --ignoredeps I have same problem on OpenSUSE 11.2, how i can install FPC 2.4.0 on it. -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.

Re: [fpc-pascal] installing on RHEL5 (libtinfo)

2010-03-04 Thread Zaher Dirkey
On Thu, Mar 4, 2010 at 10:43 PM, Zaher Dirkey wrote: > On Thu, Mar 4, 2010 at 3:52 PM, Jonas Maebe wrote: > >> --ignoredeps > > > I have same problem on OpenSUSE 11.2, how i can install FPC 2.4.0 on it. > > -- > Zaher Dirkey > I forced to install by rpm -i --

Re: [fpc-pascal] installing on RHEL5 (libtinfo)

2010-03-04 Thread Zaher Dirkey
ist.Insert(Index: integer; const S: string); begin inherited Insert(Index, S); if GetCount = 1 then UpdateComboHeight; end; Thanks -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] installing on RHEL5 (libtinfo)

2010-03-04 Thread Zaher Dirkey
.net/linux/rpm2html/search.php?query=libtinfo.so.5 ncurses-libs-5.7-3.20090207.fc12.i686.rpm<ftp://rpmfind.net/linux/fedora/releases/12/Everything/i386/os/Packages/ncurses-libs-5.7-3.20090207.fc12.i686.rpm> extract file /lib/libtinfo.so.5.7 to you PC /lib and rename it by

Re: [fpc-pascal] tstringlist.savetostream

2010-03-15 Thread Zaher Dirkey
On Tue, Mar 16, 2010 at 3:53 AM, Terry A. Haimann wrote: > After running tstringlist.savetostream how can I make sure that the buffer > has been flushed and data sent successfully? > > That depend on the stream you passed to TStringList.SaveToStream --

Re: [fpc-pascal] Reference Counting

2010-04-04 Thread Zaher Dirkey
must use variable of interface to use TInterfacedObject not variable of TObject to take this advantage (if i am not wrong). -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Implementing an interface force me to add _AddRef, _Release

2010-04-15 Thread Zaher Dirkey
; function _Release : longint;stdcall; While i am not inherit IMyIntf from IUnknown or IInterface, Is there a way to not add unnecessary functions (for me at least). Sorry for my bad English, and Thanks in advance. -- Zaher Dirkey ___ fpc-pascal maillist

Re: [fpc-pascal] Implementing an interface force me to add _AddRef, _Release

2010-04-15 Thread Zaher Dirkey
On Thu, Apr 15, 2010 at 11:09 AM, Michael Van Canneyt wrote: > {$INTERFACES CORBA} {$INTERFACES CORBA} It is resolved my problem, Is there any limit to use it (except it is not work in Delphi)? Thank for your replay. -- Zaher Dirkey ___ fpc-pas

Re: Re[2]: [fpc-pascal] Published -> Public

2010-04-15 Thread Zaher Dirkey
s happend. > > I had found this "visibility lower" warnings all along the LCLfpgui > interface, so I think I will move them to the expected "published" > level as parent TWSxxx classes. > > -- > Best regards, >  José > > ___

Re: [fpc-pascal] Implementing an interface force me to add _AddRef, _Release

2010-04-16 Thread Zaher Dirkey
On Thu, Apr 15, 2010 at 7:58 PM, Marc Weustink wrote: > Zaher Dirkey wrote: >> >> On Thu, Apr 15, 2010 at 11:09 AM, Michael Van Canneyt >> wrote: >>> >>> {$INTERFACES CORBA} >> >> {$INTERFACES CORBA} >> >> It is resolved my pro

Re: Re[6]: [fpc-pascal] Published -> Public

2010-04-17 Thread Zaher Dirkey
t;>  José > > Sure, I was just saying that in a different context. I found Marc's > observation very weird, and I'm (still) going to check it. > > Flávio Yes it is useful info for me, Is that mean descending from TForm (or any class) without mentioned "publishe

Re: [fpc-pascal] Published -> Public

2010-04-17 Thread Zaher Dirkey
On Sat, Apr 17, 2010 at 1:08 PM, Mattias Gaertner wrote: > On Sat, 17 Apr 2010 13:05:07 +0200 > Zaher Dirkey wrote: > >> 2010/4/17 Flávio Etrusco : >> > On Fri, Apr 16, 2010 at 4:54 PM, José Mejuto wrote: >> >> Hello FPC-Pascal, >> >> >

Re: [fpc-pascal] What project management tool does FPC developers use?

2010-05-04 Thread Zaher Dirkey
gewall.org/ Best Regards -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Search Engine friendly CGI web apps and pages

2010-07-13 Thread Zaher Dirkey
i [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) project1.cgi?action=$1 [QSA,L] RewriteRule ^project1.cgi$ project1.cgi And you have many examples on internet to understand R

[fpc-pascal] Initialize the object (not class)

2010-07-18 Thread Zaher Dirkey
not sure about it), is that mean i must initiliaze it. 2 - is there a method i can override it to init my properties without to call it manualy O.init; Thanks in advance -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Initialize the object (not class)

2010-07-18 Thread Zaher Dirkey
On Sun, Jul 18, 2010 at 10:20 PM, Jonas Maebe wrote: > > 2 - is there a method i can override it to init my properties without to > > call it manualy O.init; > > No. Can i ask to be an "Feature Request" in FPC? Thanks -- Zaher Dirkey ___

Re: [fpc-pascal] Ideas for namespace implementation

2010-07-26 Thread Zaher Dirkey
> I think namespace = package rtl package generate rtl.dll or rtl.so (not yet in fpc) i can use uses rtl.sysutils, mypackage.classes; or uses sysutils in rtl, classes in mypackage; we can declare the package/namespcase as like in delphi package

Re: [fpc-pascal] winCE delopment and devices explorer

2010-07-31 Thread Zaher Dirkey
On Sat, Jul 31, 2010 at 5:37 PM, Codebue Fabio - P-Soft < f.code...@p-soft.biz> wrote: > There are some way to see my computer disk from my windows CE device? > Saving directly From WinCE to PC, No. -- Zaher Dirkey ___ fpc-pascal mail

  1   2   >