Re: [fpc-devel] Circular references and forward declarations
El 05/01/2010 15:48, Marco van de Voort escribió: In our previous episode, Horacio Jamilis said: I need this feature too, and I like this proposed syntax. In my case, my classes are defined in a form unit, so I can not have more than 1 class per file (this is a Lazarus project)... It's perfectly possible to have more than 1 class per file. Also in Lazarus. You can only not have multiple design forms in one class, but the designer in those other languages almost sure can't handle circular classes either. In my project, each class is linked to one form, and defined in the same unit as the form. Horacio ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Circular references and forward declarations
El 05/01/2010 13:07, Juha Manninen escribió: Why is it not allowed from another unit? They are conceptually the same thing! The problem could be solved easily if there was a forward declaration saying: TMyClass = class; defined in "MyUnit.pas" I need this feature too, and I like this proposed syntax. In my case, my classes are defined in a form unit, so I can not have more than 1 class per file (this is a Lazarus project)... I know that I should have more divided the visible editing and the class itself, and I did, with some tricks, but I continue with the 1 file per class implementation. so the idea to have 1 big file is not possible ... and if it where, i will not like it anyway. When I asked for this possibility, I was told to create one big unit with abstract classes definitions... that may help me, but never had the time to test it... I am casting everywhere... It´s ugly and error prone, but is what works. So this feature could make my life a lot easier ... but I don´t know how to implement it... else I would do it. It is with no doubt in my wish list. Good luck on this Horacio ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] CGI/Command line/GUI all in one
Dariusz Mazur escribió: http://www.emadar.com/fpc/xwebdemo.zip its very simple demo with all libraries but some text are in polish, fell free to ask, i've try to translate or explain I tried to compile the demo project with Delphi 2007 (because I saw a .dpr file)... but it seems that a couple of required files are missing... aka: kom2, kom3 ... and may be others. I really like to see this working... Could you fix te problems or may be send me this files? and the command to compile with fpc? Thanks. I've update xwebdemo, it contains compiled version too if any problems, tell me On FPC all should be OK, maybe except dpr file and synapse (zip does not contain whole) ex: FPC testmobile.dpr Thanks, I will test it. Horacio ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] CGI/Command line/GUI all in one
Dariusz Mazur escribió: Horacio Jamilis pisze: Dariusz Mazur escribió: This is not problem to have separate executable, only have one source to both GUI. I made program which can work as desktop and as web-based (FCGI or standalone web server) Each form is create dynamical in runtime, source is one, but in compile time: 1 for desktop: clasic units from LCL (or rather VCL, on windows I use Delphi) 2.for web-base different set of units to handle web, but with the same API as VCL Darek How do you do this? I want to do exactly the same... having 2 exe, one for desktop and one for web without doubling the work (from the same sources). I was thinking on using Intraweb (or VCL for the web in delphi)... but, what are you using for the web with FPC? webserver from synapse, but with several modification (current is much faster) own framework as I write upper,it contain replacement for units controls, forms, stdctrl of course only this part which I need, but its work I want to move to FPC from delphi, but I see no viable alternative to Intraweb in FPC (and Lazarus). Indy don't work properly on linux, Intraweb is so complicated and very heavy Do you have any sample source I could see? http://www.emadar.com/fpc/xwebdemo.zip its very simple demo with all libraries but some text are in polish, fell free to ask, i've try to translate or explain I tried to compile the demo project with Delphi 2007 (because I saw a .dpr file)... but it seems that a couple of required files are missing... aka: kom2, kom3 ... and may be others. I really like to see this working... Could you fix te problems or may be send me this files? and the command to compile with fpc? Thanks. Horacio ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] CGI/Command line/GUI all in one
Dariusz Mazur escribió: This is not problem to have separate executable, only have one source to both GUI. I made program which can work as desktop and as web-based (FCGI or standalone web server) Each form is create dynamical in runtime, source is one, but in compile time: 1 for desktop: clasic units from LCL (or rather VCL, on windows I use Delphi) 2.for web-base different set of units to handle web, but with the same API as VCL Darek How do you do this? I want to do exactly the same... having 2 exe, one for desktop and one for web without doubling the work (from the same sources). I was thinking on using Intraweb (or VCL for the web in delphi)... but, what are you using for the web with FPC? I want to move to FPC from delphi, but I see no viable alternative to Intraweb in FPC (and Lazarus). Do you have any sample source I could see? Thanks Horacio ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel