Re: [fpc-pascal]how to convert a string to pppchar

2004-03-04 Thread Steve Williams
To convert a PPPChar to a String, you should be able to do MyString := String(MyPPPChar^^); To convert from String to PPPChar, you will need some intermediate variables MyPChar := PChar(MyString); MyPPChar := @MyPChar; MyPPPChar := @MyPPChar; Sly - Original Message - From: "Gon

Re: [fpc-pascal]how to convert a string to pppchar

2004-03-04 Thread Peter Vreman
> i defined > type > PPPChar=^PPChar > end; > > now the question is how to convert a string to pppchar or convert a > pppchar to string? > please help me. pppchar should be read as 'address of an array of pchars'. converting a string to that depends on the situation. _

[fpc-pascal]how to convert a string to pppchar

2004-03-04 Thread GongYu
i defined type PPPChar=^PPChar end; now the question is how to convert a string to pppchar or convert a pppchar to string? please help me. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Suppressing the console window in Win32

2004-03-04 Thread Peter Vreman
>> But in general FPC is written more with portability in mind, and this >> increases the library layer slightly. Also Delphi might have >> optimizations >> on while FPC needs params to enabled them. (I assume you already use >> -XXs > to compile the fpc >> binary, you could also use -OG3p3 or so)

Re: [fpc-pascal]quick question

2004-03-04 Thread James Mills
On Thu, Mar 04, 2004 at 11:39:46PM -0500, r.w.h wrote: > begin > if exists ('bot.log') > then begin > assign(ftb,'bot.log'); > append(ftb); > writeln(ftb,'bot log created'); // find away to enter time , date > close(ftb); > end > else > begin > assign(ftb,'bot.log'); > reset(ftb); > writeln(ftb,'th

[fpc-pascal]quick question

2004-03-04 Thread r.w.h
begin if exists ('bot.log') then begin assign(ftb,'bot.log'); append(ftb); writeln(ftb,'bot log created'); // find away to enter time , date close(ftb); end else begin assign(ftb,'bot.log'); reset(ftb); writeln(ftb,'the botlog was created'); close(ftb); end; end; whats wrong with the code. i get t

Re: [fpc-pascal]no ppu installation with fpcmake

2004-03-04 Thread Marc Santhoff
Am Mi, den 03.03.2004 schrieb Peter Vreman um 13:13: > >> > My goal is to install only the program and some data and readme but no > >> > compiler related files. > >> > >> Under [target] only specify the programs. Under [clean] add the units. > > > > If I try that way the units are not found. > >

Re: [fpc-pascal]fpcmake and capital letter filenames

2004-03-04 Thread Marc Santhoff
Am Mi, den 03.03.2004 schrieb Marco van de Voort um 23:34: > > Am Mi, den 03.03.2004 schrieb Peter Vreman um 12:46: > > > > > > > > Sorry for that, but it leads to the question: Does fpc do this by design > > > > or can I switch it off? > > > > > > Try 1.9.x > > > > I'll do that later on, for now

Re: [fpc-pascal]Suppressing the console window in Win32

2004-03-04 Thread Steve Williams
> But in general FPC is written more with portability in mind, and this > increases the library layer slightly. Also Delphi might have optimizations > on while FPC needs params to enabled them. (I assume you already use -XXs to compile the fpc > binary, you could also use -OG3p3 or so) I was using

Re: [fpc-pascal]Suppressing the console window in Win32

2004-03-04 Thread Marco van de Voort
> > > The executable also got 23KB larger just from being compiled with 1.9.2, > > > ie. > > > from 82KB to 105KB. > > > > That is always the case... more functionality means a bigger size... for > > example threadvar for multithreading support takes more space. Also > > register calling takes more

Re: [fpc-pascal]Suppressing the console window in Win32

2004-03-04 Thread Steve Williams
> > The executable also got 23KB larger just from being compiled with 1.9.2, > > ie. > > from 82KB to 105KB. > > That is always the case... more functionality means a bigger size... for > example threadvar for multithreading support takes more space. Also > register calling takes more space, but it

Re: [fpc-pascal]Suppressing the console window in Win32

2004-03-04 Thread Peter Vreman
>> > Thanks. I've never had to use that in Delphi since it defaults to GUI > if >> > there is no $APPTYPE directive. Would it make sense for FPC to >> default > to >> > GUI if compiled in Delphi compatibility mode? I'm new to FPC so I >> don't >> > know if that has been discussed before. >> >> T

Re: [fpc-pascal]Suppressing the console window in Win32

2004-03-04 Thread vkrish
> I'm building a graphical application using GameVision > (http://www.jarroddavis.com/). The application compiled in FPC opens a > console window whenever the application is executed. The application > compiled in Delphi does not open a console window. How do I not have the > console window a