Re: [fpc-pascal] Ho to convert a special format of datetime?

2018-12-13 Thread luciano de souza
etime. Freepascal always present to us some pleasant surprisses. 2018-12-13 18:07 GMT-02:00, luciano de souza : > Hello all, > I'd like to convert this date "2017-01-11T17:47:22.2912317-02:00" to > TDatetime. > It seems probably it exists in Freepascal, but I don't know. >

[fpc-pascal] Ho to convert a special format of datetime?

2018-12-13 Thread luciano de souza
don't know how to do it easily. I thank you for any help. Best Regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Running tests with FPC units only

2018-11-11 Thread luciano de souza
maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Running tests with FPC units only

2018-11-11 Thread luciano de souza
alize; run; finally free; end; end; END. However, TTestRunner belongs to consoletestrunner, a non Freepascal unit. I imagine there is a way to run tests only with Freepascal units. But how to do this without consoletestrunner, a unit found in Lazarus? Best regards, -- Lucian

Re: [fpc-pascal] Pascal units to connect to an Exchange server

2018-07-20 Thread luciano de souza
t; What exactly are you wanting to accomplish by mixing in Exchange and > Outlook? > > > -- > Bo Berglund > Developer in Sweden > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bi

[fpc-pascal] Pascal units to connect to an Exchange server

2018-07-19 Thread luciano de souza
unit to handle with Exchange sending protocol? Best Regards, -- Luciano de Souza Hello all, From a Linux machine connected to a Windows machine by VPN, I’d like to send e-mails programmatically using a Microsoft Exchange account. Using Windows resources, I could call Outlook automation API to do

Re: [fpc-pascal] Replacing parts of a string with TRegexpr

2018-02-22 Thread luciano de souza
d anything else is needed! Sorry for the unnecessary question! 2018-02-22 10:38 GMT-03:00, luciano de souza : > Hello all, > I'd like to replace some part of a string acording to a pattern. > I know how to search and print the matches of a ER: > > program test; > {$mode ob

[fpc-pascal] Replacing parts of a string with TRegexpr

2018-02-22 Thread luciano de souza
dispite this, I was not able to understand how to do it. -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Using the LCL without Lazarus

2016-12-01 Thread luciano de souza
ements are positioned over elements, perhaps the screen reader read incorrectly. What you have shown is very simple! Thank you! 2016-12-01 15:04 GMT-02:00, Mattias Gaertner : > On Thu, 1 Dec 2016 14:57:42 -0200 > luciano de souza wrote: > >> I am also blind and this topic really inter

Re: [fpc-pascal] Using the LCL without Lazarus

2016-12-01 Thread luciano de souza
s\i386-win32\lcl\widgetset > C:\FPC\2.4.4\units\i386-win32\lcl\interfaces\win32 > Then click on the Include files tab. > Add this directory: > C:\FPC\2.4.4\units\i386-win32\lcl\include > Now, you should be able to use the LCL. > > > If the answers to my questions #1 & #2 are in the affirmative, and if the > paths described in my question #3 can be added to the Windows search path or > inserted into a *.ini file or somewhere else, perhaps I can give it a go. > > I apologize for such a lengthy message but, I didn't know how else to make > clear my dilemma. > > Thanks, > > Bob > > -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] The testcase example doesn't generate plain text report

2016-11-16 Thread luciano de souza
found, but alerts to the fact that no tests were done in this method of the Testcase. 2016-11-15 7:06 GMT-02:00, luciano de souza : > Hello all, > I am trying to run testcases. > For testing the idea, I compile the example contained in: > > ./fpc-3.0.0/packages/fcl-fpcunit > >

[fpc-pascal] The testcase example doesn't generate plain text report

2016-11-15 Thread luciano de souza
commandline: ./testrunner -a --format=plain However, the output produced was in XML. What am I doing wrong. See the output: 62 0 0 -- Luciano de Souza

Re: [fpc-pascal] Writing DLLs to by used in Excel VBA code

2015-12-14 Thread luciano de souza
The problem is solved. Actually, I didn't know that, in my Linux, sharable libraries are only accessible from /usr/lib. As I was trying to access a lib in another directory, Libreoffice was not able to find it. Regards, Luciano 2015-12-11 17:15 GMT-02:00, luciano de souza : > Hello al

[fpc-pascal] Writing DLLs to by used in Excel VBA code

2015-12-11 Thread luciano de souza
vel(2;5) And I got: #value I really don't know what to do. Seemlngly, VBA code is correct. I don't know so much about DLLs, would be possible to have a mistake in my Pascal code? Does someone have any idea? Best regards, -- Luciano de Souza library CE; {$mode objfpc} uses S

Re: [fpc-pascal] Searching recursively for units in a path

2015-12-05 Thread luciano de souza
, but when compiling brokers.pas, ./Globals/Components/Brook/brookfclhttpappbroker.pas was not found. Perhaps, it's better to have the work of declaring everything individually. 2015-12-05 9:52 GMT-02:00, Michael Van Canneyt : > > > On Sat, 5 Dec 2015, luciano de souza wrote: > >>

[fpc-pascal] Searching recursively for units in a path

2015-12-05 Thread luciano de souza
subfolders recursively with -Fu? -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cryptography with Blowfish

2015-12-01 Thread luciano de souza
VInput.free; VOutput.free; end; END. 2015-12-01 17:57 GMT-02:00, luciano de souza : > Hello all, > > What's wrong with this code? > > I try to cryptograph a file. The compiler doesn't raise errors, but > after running the program, no results happen. > > program test;

[fpc-pascal] Cryptography with Blowfish

2015-12-01 Thread luciano de souza
IN VMemory := TMemoryStream.create; VMemory.LoadFromFile('origin.txt'); VCypher := TBlowfishEncryptStream.create('lazarus-br', VMemory); try VMemory.position := 0; VCypher.write(VMemory.memory, VMemory.size); VMemory.SaveToFile('output.bfe'); finally VCypher.free; VMemo

Re: [fpc-pascal] Implementing Factory Method with Pascal

2015-11-27 Thread luciano de souza
strong impression. Thank you! 2015-11-27 21:48 GMT-02:00, Marcos Douglas : > On Fri, Nov 27, 2015 at 7:44 PM, luciano de souza > wrote: >> If I need to do "TAnimalFactory.create(atDog) as Tdog", perhaps, it >> would be better not to use a factory, doing simply "TDog.crea

Re: [fpc-pascal] Implementing Factory Method with Pascal

2015-11-27 Thread luciano de souza
nimal.bark; > finally > animal.free; > end; > END. > > > Mattias > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > -- Luciano d

[fpc-pascal] Implementing Factory Method with Pascal

2015-11-27 Thread luciano de souza
; {TAnimalFactory} class function TAnimalFactory.create(AType: TAnimalType):TAnimal; begin case AType of atDog: result := TDog.create; atCat: result := TCat.create; end; end; end. Well, I am studying design patterns, but I really does not understand how to solve t

[fpc-pascal] Persistent list to store objects

2015-08-17 Thread luciano de souza
Hello all, There are several classes which manages lists. TCollection, TObjectlist, TFPGObjectlist... Does someone know if one of then can be saved as a file and reloaded again to an object? Regards, -- Luciano de Souza ___ fpc-pascal maillist

Re: [fpc-pascal] Writing a DLL to be use in a VBA code

2015-06-06 Thread luciano de souza
Thank you for the always rapid and gentile reply. Well, if there's no way to avoid pchar, let's go to pchar! 2015-06-06 4:27 GMT-03:00, Michael Van Canneyt : > > > On Sat, 6 Jun 2015, luciano de souza wrote: > >> Hello all, >> >> At work, I need to crea

[fpc-pascal] Writing a DLL to be use in a VBA code

2015-06-06 Thread luciano de souza
function in Freepascal? function concatenate(name: string): string; cdecl; begin result := 'Freepascal ' + name; end; -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to instantiate a public type in a generic class

2015-05-25 Thread luciano de souza
GMT-03:00, luciano de souza : > Hello listers, > > Using Freepascal 2.6.4, I have a problem about generics. In short, I > can't specialize a class with a subtype of a type declared with > "public type". Let me try to explain. > > In dopf.pas, I have: > > type

[fpc-pascal] How to instantiate a public type in a generic class

2015-05-17 Thread luciano de souza
ll, I think the problem is illustrated. The doubt is how can create an instance of a public type, in my case, t2.Tentities inside my specialized class? Best regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] Size limits to name child specialized classes

2014-10-10 Thread luciano de souza
Thank you. Generics is one of the best features the compiler has lately implemented. I am happy to use it freely! 2014-10-10 9:34 GMT-03:00, Sven Barth : > Am 10.10.2014 12:52 schrieb "luciano de souza" : >> >> Hello all, >> >> Nowadays, using FPC 2.6.4, spe

[fpc-pascal] Size limits to name child specialized classes

2014-10-10 Thread luciano de souza
solved? When the parent class has a long name, names chosen to child class must be excessively short! Regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Commandline to compile projects with generics

2014-09-22 Thread luciano de souza
Yes, I use 2.6.4 version. Well, the important is that work is being doing and the time will arrive. 2014-09-22 14:05 GMT-03:00, Sven Barth : > Am 22.09.2014 15:53 schrieb "luciano de souza" : >> Yes, it works, but why is it not possible to compile programs with >> gener

Re: [fpc-pascal] Commandline to compile projects with generics

2014-09-22 Thread luciano de souza
General mailing list archive at Nabble.com. > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] Persistent lists to save records

2014-09-22 Thread luciano de souza
ascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Persistent lists to save records

2014-09-22 Thread luciano de souza
ch are the easiest way to save records without this limitation? Is there something like a persistent list? -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Commandline to compile projects with generics

2014-09-22 Thread luciano de souza
piled with: fpc progname.pp -B -Scghi -O1 -gw2 -godwarfsets -gl -vewnhi Yes, it works, but why is it not possible to compile programs with generics with the conventional method? Regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Freepascal templating engines with logical structures

2014-09-22 Thread luciano de souza
dataset to be shown and paginated. And by means of a text property, I can fill the template with one of the presented engines. 2014-09-17 1:51 GMT-03:00, luciano de souza : > Hello all, > > I Know two templating engines for Freepascal: FPTemplate e JTemplate. > Both can be successfu

[fpc-pascal] Freepascal templating engines with logical structures

2014-09-16 Thread luciano de souza
with support for logical structures? Regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Using a custom fpc.cfg

2014-07-07 Thread luciano de souza
of the same directory of the executable. What I want to know is: is there a commandline parameter to specify a new name or, at least, a new directory to fpc.cfg file? For example, in stead of placing fpc.cfg in ./, I want to place it in ./Settings. I use fpc 2.6.4. -- Luciano de Souza

[fpc-pascal] Understanding the usage of resources in Linux

2014-05-24 Thread luciano de souza
the command line and a text editor like Gedit, is it possible to add files as resources in my executable? -- Regards, Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A Regular Expression failing on the borders of words

2014-04-10 Thread luciano de souza
. My knowledge about Regular Expressions is small, so I really need to study more. 2014-04-10 4:16 GMT-03:00, Mattias Gaertner : > On Thu, 10 Apr 2014 02:43:41 -0300 > luciano de souza wrote: > >>[...] >> r.expression := '^(x\s+)*(\([A-E]\))*(\s*.*\.)+(\s+\+.*\b)*(\s+@.*\

[fpc-pascal] A Regular Expression failing on the borders of words

2014-04-09 Thread luciano de souza
". It's true I am not have enough experience in Regular Expressions, but the used one seems to be very logical for me. Would Someone have any idea what is wrong? Best regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A linking error in a SDL example

2014-03-04 Thread luciano de souza
eg library. On debian it's provided by the > libsmpeg0 package. > > https://packages.debian.org/wheezy/libsmpeg0 > -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] A linking error in a SDL example

2014-03-03 Thread luciano de souza
wrong? Regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Formating JSON outputs

2014-01-28 Thread luciano de souza
:= TStringlist.create; r := TJSONObject.create; a := TJSONarray.create; j := TJsonObject.create; j.strings['name'] := 'Luciano de Souza'; j.integers['age'] := 38; j.strings['city'] := 'Niterói'; j.strings['country'] := 'Brazil'; a.add(j.clon

Re: [fpc-pascal] Adding files to a tar file

2014-01-21 Thread luciano de souza
d; END. Thank you! This class is really very easy to use. 2014/1/21, Flávio Etrusco : > On Tue, Jan 21, 2014 at 10:45 PM, luciano de souza > wrote: >> Hello all, >> >> This code should add all the files of a directory in a tar file. >> >> program e01; >> {

[fpc-pascal] Adding files to a tar file

2014-01-21 Thread luciano de souza
f the directory can't be opened. What is wrong? My second doubt is: I am running this program in Ubuntu 13.10. If I run it in Windows, will a external library be necessary or all the code is included in lib tar unit? Regards, -- Luciano de Souza __

Re: [fpc-pascal] FPCUnit tests without Lazarus

2013-10-18 Thread luciano de souza
Yes, you are right. Now, I observe that we have two foldders: fpcunit and fcl-fpcunit. The missing units were in the last one. I don't know why I made this confusion. Sorry! 2013/10/18, Michael Van Canneyt : > > > On Fri, 18 Oct 2013, luciano de souza wrote: > >> Hello

[fpc-pascal] FPCUnit tests without Lazarus

2013-10-18 Thread luciano de souza
mple, so why not to try it? What do you can say me about FPCUnit without Lazarus? Or more broadly, which would be your strategy to automatize tests if Lazarus didn't exist? Regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Executable with invisible window and IO enabled

2013-07-21 Thread Luciano de Souza
I thank you for the tip. That's true I haven't tested it up to now. The Windows was damaged by 194 infections. this large amount of virus has blocked the browsers and, as a result, the web development was suspensed for some time. It's really confortable to know Linux is safier. the important is

Re: [fpc-pascal] Executable with invisible window and IO enabled

2013-07-21 Thread Luciano de Souza
I thank you for the tip. That's true I haven't tested it up to now. The Windows was damaged by 194 infections. this large amount of virus has blocked the browsers and, as a result, the web development was suspensed for some time. It's really confortable to know Linux is safier. the important is

[fpc-pascal] Executable with invisible window and IO enabled

2013-07-15 Thread luciano de souza
hello all, I want to compile a program with no visible screen, but at the same time, with input and output enabled. If I use $apptype gui, the screen is invisible, but there are not input and output. If I use the standard $apptype console, the input and output is enabled, but the screen is visible.

Re: [fpc-pascal] Re: ID3v2 - Reading and writing MP3 metadata

2013-05-09 Thread luciano de souza
t I think I was not able > to implement it if it is already available. > e Free Pascal - General mailing list archive at Nabble.com. > > __ > > Hello. > Im busy to implement ID3v2 tag in uos. > Im nearly ready... > https://github

Re: [fpc-pascal] Re: ID3v2 - Reading and writing MP3 metadata

2013-05-09 Thread luciano de souza
fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > -- Luciano de Souza unit ID3v2; {$mode objfpc}{$H+} interface uses Classes, SysUtils; const TAG_VERSION_2_2 = 2; TAG_VERSION_2_3 = 3; TAG_VERSION_2_4 = 4; type T

[fpc-pascal] ID3v2 - Reading and writing MP3 metadata

2013-05-09 Thread luciano de souza
e; try with tagger do begin track := StrToInt64Def('12', 0); title := 'O meu título'; artist := 'O meu artista'; album := 'O meu álbum'; year := '2013'; comment := 'O meu comentário'; genre := 'clássico

Re: [fpc-pascal] Documentation

2012-12-17 Thread luciano de souza
________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Brook 1.0 - A new framework for web was born

2012-12-15 Thread luciano de souza
ninen : > May I ask how were the hierarchy and dependency graps generated? > Is there a tool that can do it? > > Juha > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] Brook 1.0 - A new framework for web was born

2012-12-15 Thread luciano de souza
turday 15 December 2012 09:59:48 schrieb luciano de souza: >> No, Brook works with any web server. Apache is only the an example and >> the preference of the author. >> >> 2012/12/15, silvioprog : >> > Hello all, >> > >> > More than 15,000 lin

Re: [fpc-pascal] Brook 1.0 - A new framework for web was born

2012-12-15 Thread luciano de souza
I drive to João Moraes, who gave me valuable advices to > decoupling the code. Thanks for Luciano de Souza, responsible for the > documentation and the name of methods and properties. Thanks also for > Marcos Douglas, the author of Greyhound, project wich started as an > inspiration an

Re: [fpc-pascal] Fwd: [OFF-TOPIC] EazyRSS - A simple writer and reader for the RSS protocol

2012-11-24 Thread luciano de souza
e an > honor to participate in this fantastic project. > Is the FPC team likes, I will exclude this project from Github since, in > this case, it wouldn't make sense to stay there. > But whatever is the will, here I offer my work and I hope

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-24 Thread Luciano de Souza
Unfortunately, I don't have enough knowledlge even to start a task like that. But observing the firm journey of Freepascal, I am sure we will have it soon. Em 24-11-2012 06:52, Michael Van Canneyt escreveu: On Fri, 23 Nov 2012, luciano de souza wrote: Among its hundreds of units

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread luciano de souza
l.org/mailman/listinfo/fpc-pascal >> >> >> Yes, I said this because the original poster wrote he needed the very >> little code to accomplish this. > > I implemented the class methods for all forms of Get/Post/Formpost, so now > you can

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread Luciano de Souza
, luciano de souza wrote: Hello listers, Using Synapse, the developer has very good features to deal with the HTTP protocol. But imagine you want only to do a "get" in a URL and take a string back. I imagine it can be done with the standard units of Freepascal. Is it true? How could I do i

[fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread luciano de souza
Hello listers, Using Synapse, the developer has very good features to deal with the HTTP protocol. But imagine you want only to do a "get" in a URL and take a string back. I imagine it can be done with the standard units of Freepascal. Is it true? How could I do it with FPC 2.7.1? Best regards, Luc

Re: [fpc-pascal] Using flag field in Getopts

2012-10-31 Thread luciano de souza
If I correctly understood, the flag field is to find arguments. If it remains "nil", the argument was not found, otherwise, it's a pointer to the short option. 2012/10/30, Henry Vermaak : > On 30/10/12 10:05, luciano de souza wrote: >> Hello listers, >> Getopt

Re: [fpc-pascal] Generating templates with FPTemplate

2012-07-27 Thread Luciano de Souza
Michael, Your example is very clear. I am not very good to understand source codes. But this style seems to be very good and logical. It's really wonderful: FPC owns units for everything! Thank you. On 27/7/2012 08:43, michael.vancann...@wisa.be wrote: On Fri, 27 Jul 2012, luciano de

Re: [fpc-pascal] Re: Generating templates with FPTemplate

2012-07-27 Thread Luciano de Souza
On 27/7/2012 08:51, leledumbo wrote: try this: type TMyTemplate = class(TFPTemplate) private procedure ReplaceMyTags(Sender : TObject; Const TagString : String; TagParams:TStringList; Out ReplaceText : String); public constructor Create; end; procedure TMyTemplate.ReplaceM

[fpc-pascal] Small and not instalable web server for a local Pascal CGI application

2012-07-12 Thread luciano de souza
Hello all, I am running some CGIs in localhost. When talking about web servers, the name of Apache comes as natural. However, I would like to share some zip files to show the results. For this purpose, Apache is not the best because I need something not instalable. I tried a small server

[fpc-pascal] Codepage: UTF-8 code greater than 65535 found

2012-06-24 Thread luciano de souza
Hello all, In order to enable UTF-8 characters, I tried to use it: program dvcodepage; {$codepage UTF8} uses Sysutils; var x: integer; BEGIN writeln('Digite um número'); readln(x); writeln('O número digitado foi ', x); END. I really didn't expect errors, but I got the following output: Free

[fpc-pascal] Re: Playing sounds with standard components

2012-06-11 Thread luciano de souza
tful! Regarding the complexity, probably is's possible to do much more than simply play a sound. In spite of that, it would be intersting to have something easier. The examples work with complex and for me, abstract structures. Which kind of content, do I need to study to understand Openal or SDL?

[fpc-pascal] Playing sounds with standard components

2012-06-09 Thread luciano de souza
Hello all, Bass is a very good library for sound playing and recording. However, it's not included as an standard feature of Freepascal. For whom wich wants to work with standard components, are there other options: (1) to play sounds and (2) to record sounds? Regards, Luciano ___

[fpc-pascal] Getting an output string from a TProcess

2012-06-01 Thread luciano de souza
Hello all, I want to execute FPC, but filtering the output in order to show only the necessary information. The reason is I am blind, I use screen reader and, in the console environment, it's not possible to read the rows below without firstly read the rows above. My intention is to use TProcess,

[fpc-pascal] Re: Handling with sources and exebutables with different names

2012-05-17 Thread luciano de souza
, placeable in code, allowing me to define a name for the executable? I am asking to myself: "Did I become crazy? Have I done the test wrongly?" Yes, it can be. However, I did it several times with the same result. I don't know what, but something misleading is wrong. 2012/5/17, l

[fpc-pascal] Handling with sources and exebutables with different names

2012-05-17 Thread luciano de souza
hello all, I am compiling CGI modules with Freepascal in commandline mode. if I do: fpc test.pas the result is "test.exe". But the source name needs to be different from the executable name. For this reason: fpc test.pas -oindex.cgi This command should result in index.cgi, placed on the curren

[fpc-pascal] Re: Parsing parameters inside an interpreter

2012-05-14 Thread luciano de souza
Fortunately, my case is the simplest one. There will not quotes inside quotes. Therefore, I believe TStringlists will sove the whole problem. It's really amasing what we can do with a TStringlist. Thank you for the precious tips! 2012/5/13, luciano de souza : > Hello all, > > I t

[fpc-pascal] Parsing parameters inside an interpreter

2012-05-13 Thread luciano de souza
Hello all, I trying to build a very small interpreter. I can type commands like: $ add "Luciano de Souza" luchya...@gmail.com Somewhere in my code, I can have something like: procedure parse(commandline: string; var params: array of string); In this case, the commandline has the fo

Re: [fpc-pascal] Data persistance in CGI projects

2012-02-26 Thread Luciano de Souza
ut of course, I may be wrong. Em 26-02-2012 13:29, Michael Van Canneyt escreveu: On Sun, 26 Feb 2012, Luciano de Souza wrote: Hello all, For desktop environments, there are mature projects on data persistance. Press Objects, TiOPF... desktop developers can be proud of the tools they have.

[fpc-pascal] Data persistance in CGI projects

2012-02-26 Thread Luciano de Souza
Hello all, For desktop environments, there are mature projects on data persistance. Press Objects, TiOPF... desktop developers can be proud of the tools they have. What about CGI environments? Is there something already developed? Yes, we can use SQLDB. It's really a very good component. How

Re: [fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-02-01 Thread Luciano de Souza
istake is very high! But fortunately, I have a good friend who corrects me! One bilion of corrections else and I will be perfect! Thank you very much! Em 01-02-2012 04:54, waldo kitty escreveu: On 1/31/2012 22:23, Luciano de Souza wrote: Hello listers, A strange error came up when format

Re: [fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-02-01 Thread Luciano de Souza
and galaxes! Thank you very much! Regards, Luciano Em 01/02/2012 04:54, waldo kitty escreveu: On 1/31/2012 22:23, Luciano de Souza wrote: Hello listers, A strange error came up when formating a date. See this code: writeln(formatdatetime('dd/mm/', now)); The answer should be: 31

[fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-01-31 Thread Luciano de Souza
Hello listers, A strange error came up when formating a date. See this code: writeln(formatdatetime('dd/mm/', now)); The answer should be: 31/01/2012 The answer was: 31-01-2012 I did one test else: writeln(formatdatetime('dd$mm$', now)); The answer was: 31$01$2012 Yes, the problem se

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Luciano de Souza
e done, and you will not need Lazarus. Michael. On Sat, 7 Jan 2012, Luciano de Souza wrote: Hello listers, I have really appreciated the organized tests that FPCUnit allows. It's really a very good feature, but for me, it hasn't been to use it. For some while, I have writen an

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Luciano de Souza
not impossible that I need FileUtils and Clipboard. But When it comes, I will think about. Until there, FPC is complete for me. Em 08-01-2012 10:06, Rainer Stratmann escreveu: Am Sunday 08 January 2012 02:17:29 schrieb Luciano de Souza: I have downloaded a Lazarus deb package compatible with F

Re: [fpc-pascal] Re: FPCUnit without Lazarus

2012-01-08 Thread Luciano de Souza
Now, I understand. FPCUnit and FPCRegistry do not have LCL dependences. What depends on LCL is the runner called Console Runner. This name make me confused! I ahve alredy read the documentation, but I could not understand. Perhaps, perhaps my weak english... Well, the fact is that everything i

[fpc-pascal] FPCUnit without Lazarus

2012-01-07 Thread Luciano de Souza
Hello listers, I have really appreciated the organized tests that FPCUnit allows. It's really a very good feature, but for me, it hasn't been to use it. For some while, I have writen an e-mail saying I could not run some example. The problem was that I don't use Lazarus, but only FPC. I

Re: [fpc-pascal] Adding code indentation without Lazarus

2012-01-02 Thread Luciano de Souza
I have tested ptop with very good results. It does really what I want. As it is possible to get the default cfg with '-g", we can change it and call the changed cfg with '-c'. It's really a powerful and easy tool. Em 02-01-2012 14:29, Marco van de Voort escreveu: In our previous episode, mich

[fpc-pascal] Adding code indentation without Lazarus

2012-01-02 Thread luciano de souza
hello listers, A blind programer doesn't matter whether a code is indented. That's my case. For us, it's natural to disregard all code formatation. In spite of that, the indentation is crucial. If my code is read by sighted programers, they will be disturbed. So if it's possible, I want to type

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-17 Thread Luciano de Souza
parameter, it receives a LPI file. However, lpi files are created in Lazarus interface. The lack of accessibility of Lazarus is so big that even this task I could not do at Lazarus interface. If LPI files are really necessary, I must create then manually. Em 17/12/2011 16:11, Mattias Gaertner e

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-17 Thread Luciano de Souza
which prints out the result. Then add your test unit to this application. If you run the console test application on the command-line, specify options '--format=plain' and '--all' The graphical application will show test results in a tree. Michael. On Sat, 17 Dec 2011, Luciano

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-17 Thread Luciano de Souza
program apptest; {$mode objfpc}{$h+} uses test; begin end. Em 16/12/2011 11:44, Michael Van Canneyt escreveu: On Fri, 16 Dec 2011, Vincent Snijders wrote: 2011/12/16 luciano de souza : Hello listers, Navigating in FPC source codes, I found fpcunit. It's really wonderful. With the tT

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-16 Thread Luciano de Souza
wrote: 2011/12/16 luciano de souza : Hello listers, Navigating in FPC source codes, I found fpcunit. It's really wonderful. With the tTestCase class, we can generate a report with the success or the failure of our tests. Is there documentation on the usage of fpcunit? What is the best w

[fpc-pascal] Testing applications with FPCUnit

2011-12-16 Thread luciano de souza
Hello listers, Navigating in FPC source codes, I found fpcunit. It's really wonderful. With the tTestCase class, we can generate a report with the success or the failure of our tests. However, only observing the source code, it's not easy to comprehend how it works. I found a single parcial exam

Re: [fpc-pascal] Sorting an open unidimensional array

2011-12-11 Thread Luciano de Souza
Yes, the unit seems to be very complete. I will study it and I am sure good results will come up! Thank you! Em 11/12/2011 18:18, Martin Schreiber escreveu: On 12/11/2011 09:10 PM, Luciano de Souza wrote: Hello listers, I want to sort an open unidimensional array of integers from the

[fpc-pascal] Sorting an open unidimensional array

2011-12-11 Thread Luciano de Souza
k you in advance! Luciano -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] The best approaching for templating

2011-11-07 Thread luciano de souza
Hello listers, I would like to create some templates. Suppose the following example: %s %s %s %s I can certainly use format to link %s to the respective variables. However, if the number of %s is big, probabily, the reading would be less clearer. But, suppose I have $title in stead of

[fpc-pascal] Using areq.getnextpathinfo in a CGI module

2011-11-01 Thread Luciano de Souza
Hello listers, I am trying to understand how to create some code using Custcgi. However, the following peace is not clear for me concerning to "getnextpathinfo". Let's see: program cgiproject1; {$mode objfpc}{$H+} uses HTTPDefs, custweb, custcgi, main; type { TMyCGIHandler } TMyCGI

Re: [fpc-pascal] A linking error when compiling with FPC 2.4.4

2011-10-31 Thread Luciano de Souza
Everything is solved with a magic: "sudo apt-get install libsqlite3-dev". I tested the same example and the executable was generated. Thank you. Your reply helped me a lot! Em 31-10-2011 08:45, Jonas Maebe escreveu: On 31 Oct 2011, at 11:27, Luciano de Souza wrote: The executab

[fpc-pascal] A linking error when compiling with FPC 2.4.4

2011-10-31 Thread Luciano de Souza
Hi listers, I have installed FPC 2.4.4 using the following package: http://mirrors.iwi.me/lazarus/snapshots/fpc-2.4.4-1.i386.deb.tar Having unpacked it in a folder, I did: sudo dpkg -i *.deb The instalation was seemingly successful since I could compile some sources. However, compiling the attac

[fpc-pascal] CGI under Freepascal

2011-10-18 Thread Luciano de Souza
Hello listers, I am trying to use CGI with Pascal. I don't have background in web development, but principles of CGI seems to be simple. The first way could be FPWeb. However, I prefer another solution even if it is the best bet. It requires complex compilations and configurations since it's

[fpc-pascal] Error when translating a C header

2011-10-03 Thread Luciano de Souza
Hi listers, I tried to translate a C header with: h2pas -e -d -p iupkey.h I got the following error: at line 21 error : syntax error at line 41 error : syntax error Illegal character in line 45 "#define K_at '@' /* 64 */" Illegal character in line 73 "#define K_backslash '\\' /*