Re: [fpc-pascal] ExtractFilePath(GetModuleName(0)) problem

2009-04-12 Thread Michael Van Canneyt
On Sat, 11 Apr 2009, lloyd thomas wrote: > Need Help please "confini := > ExtractFilePath(GetModuleName(0))+'\myfile.ini';" returns C:Program > FilesMyApp\myfile.ini should be C:\Program Files\MyApp\myfile.ini . Am I > doing something wrong? > > The Problem is intermitent > > {$IFDEF Windo

Re: [fpc-pascal] ExtractFilePath(GetModuleName(0)) problem

2009-04-12 Thread Michael Van Canneyt
On Sat, 11 Apr 2009, lloyd thomas wrote: > Need Help please "confini := > ExtractFilePath(GetModuleName(0))+'\myfile.ini';" returns C:Program > FilesMyApp\myfile.ini should be C:\Program Files\MyApp\myfile.ini . Am I > doing something wrong? > > The Problem is intermitent > > {$IFDEF Windo

[fpc-pascal] httpdefs.pp multipart/form-data

2009-04-12 Thread Leonardo M . Ramé
Hi, I'm looking at httpdefs.pp file from FCL-Web and found that it handles multipart/form-data. I've been using a 3rd party parser for this kind of data, but it lacks of a good method of parsing large file uploads. My question is: ProcessMultipart method, handles the parsing in chunks of data,

[fpc-pascal] ExtractFilePath(GetModuleName(0)) problem

2009-04-12 Thread lloyd thomas
Need Help please "confini := ExtractFilePath(GetModuleName(0))+'\myfile.ini';" returns C:Program FilesMyApp\myfile.ini should be C:\Program Files\MyApp\myfile.ini . Am I doing something wrong? The Problem is intermitent {$IFDEF Windows} confini := ExtractFilePath(GetModuleName(0))+'\Myfile.i

[fpc-pascal] Free Pascal version 2.2.4 released

2009-04-12 Thread Joost van der Sluis
Hello, The Free Pascal team is pleased to announce that version 2.2.4 has been released and is available for download for all major platforms: (in alphabetical order) Dos, FreeBSD, Linux, Mac OS X, OS/2, Windows, Windows CE for different CPU types and both in 32 and 64 bit versions where appli

[fpc-pascal] MSEide+MSEgui version 2.0a

2009-04-12 Thread Martin Schreiber
Hi, MSEide+MSEgui rev. 2.0a for Free Pascal 2.2.4 has been released. https://sourceforge.net/project/showfiles.php?group_id=165409 Questions and bug reports please to NNTP: news://news.grid-sky.com/public.mseide-msegui.talk There is a new website for MSEide+MSEgui, please participate. http://www.m

Re: [fpc-pascal] httpdefs.pp multipart/form-data

2009-04-12 Thread ABorka
At the moment, it loads the whole content into a stream for processing line by line. It is possible to create a patch to not do processing (exception, error message, trigger an event handler, etc.) if the ContentLength exceeds a specified size. Leonardo M. Ramé wrote: Hi, I'm looking at ht

[fpc-pascal] Re: Return & Exit

2009-04-12 Thread Richard Ward
Mattias wrote: return x; funcname := x; exit(x); can be used in mode objfpc. OK. Thanks. That will be more portable than return since objpas is fairly common. Return is a bit simpler syntactically but exit performs the same way which is more important to having to change or

Re: [fpc-pascal] ExtractFilePath(GetModuleName(0)) problem

2009-04-12 Thread leledumbo
> Another thing: Do not add a \ yourself. ExtractFilePath returns > as the last character a \ , so you'll have MyApp\\MyFile.ini > in the end, and I think windows doesn't like that. You can also use AppendPathDelim. -- View this message in context: http://www.nabble.com/ExtractFilePath%28GetMo

Re: [fpc-pascal] fpc-2.2.2.i386-win32 on XP: Can't find unit GL used by ... (2)

2009-04-12 Thread leledumbo
Looks like there's an unhandled exception there. Add SysUtils to uses clause to see what the exception is, combine with -gl to see on which line it occurs. -- View this message in context: http://www.nabble.com/fpc-2.2.2.i386-win32-on-XP%3A-Can%27t-find-unit-GL-used-by-...-%282%29-tp23004654p230

[fpc-pascal] Difference between initialization and begin in a unit

2009-04-12 Thread leledumbo
Might be a stupid question, but it's nowhere mentioned in the documentation though allowed. What are the differences between: unit A; interface implementation initialization end. and: unit B; interface implementation begin end. -- View this message in context: http://www.nabble.

[fpc-pascal] fpc-2.2.2.i386-win32 on XP: Can't find unit GL used by ... (2)

2009-04-12 Thread ferapac
Dear FPC, Please, disregard the previous message, since I was able to compile bounce successfully by customizing the OPTIONS\DIRECTORIES\units\etc... But now when I try to run this bounce program I get the meassage: "exited with exitcode = 217"

[fpc-pascal] Re: MacMode More Info / which compatibility mode and object class type to use with Mac OS X, XCode and Carbon

2009-04-12 Thread Pierre Paré
Thank for you answers and the links I did subscribe to the list but it seems I needed to complete the process with a confirmation. The FPC list and wiki servers are presently not responding ; my confirmation is bouncing back. I could read some answers with a news reader program but was not ab

[fpc-pascal] How I can install FPC IDE in MacOS

2009-04-12 Thread Adam Pahlevi
i don't understand how to do that, i search all my need in Internet, but they all refer to Lazarus. Is there FPC IDE that can run inside Mac OS X is there, how to install and compile or build or any stuff like that, that I may run? sorry for my bad english

[fpc-pascal] fpc-2.2.2.i386-win32 on XP: Can't find unit GL used by ...

2009-04-12 Thread ferapac
Dear FPC forum, I am a total novice to FPC. I am using fpc-2.2.2.i386-win32 on XP Compiling Bounce.pp I Get the message: "Can't find unit GL used by bounce" Please: Where do I go from here ? Thank you, ferapac -- View this message in context: http://www.nabble.com/fpc-2.2.2.i386-win32-o