Re: [fpc-pascal] Function to know if WIN is 32 or 64

2011-03-16 Thread Marcos Douglas
On Wed, Mar 16, 2011 at 12:56 AM, Robert Wolfe wrote: > On 3/15/2011 10:25 AM, Marcos Douglas wrote: >> >> On Tue, Mar 15, 2011 at 11:13 AM, Henry Vermaak >>  wrote: >>> >>> On 15 March 2011 14:05, Marcos Douglas  wrote: Is there some function to know if the Windows is 32 or 64? >>> >>>

Re: [fpc-pascal] Function to know if WIN is 32 or 64

2011-03-16 Thread Juha Manninen
Marcos Douglas kirjoitti keskiviikko 16 maaliskuu 2011 13:18:41: > On Wed, Mar 16, 2011 at 12:56 AM, Robert Wolfe wrote: > > WriteLn ; > > {$IFDEF WIN32} > > WriteLn ('This is a 32-bit version of Windows.') ; > > {$ENDIF$} > > {$IFDEF WIN64} > > WriteLn ('This is a 64-bit vers

Re: [fpc-pascal] Function to know if WIN is 32 or 64

2011-03-16 Thread Marcos Douglas
On Wed, Mar 16, 2011 at 9:21 AM, Juha Manninen wrote: > Marcos Douglas kirjoitti keskiviikko 16 maaliskuu 2011 13:18:41: >> On Wed, Mar 16, 2011 at 12:56 AM, Robert Wolfe > wrote: >> >   WriteLn ; >> >   {$IFDEF WIN32} >> >       WriteLn ('This is a 32-bit version of Windows.') ; >> >   {$ENDIF$}

[fpc-pascal] macros

2011-03-16 Thread Marcos Douglas
Hi, Some day I saw an example using "macros" on the code. I want to put the compiler version in an "about form"... I remember something like %fpcversion%... %date%...whatever. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org htt

Re: [fpc-pascal] macros

2011-03-16 Thread Roland Schäfer
Hi, INCLUDEs like these will insert the appropriate strings into your code: {$INCLUDE %DATE%} {$INCLUDE %TIME%} {$INCLUDE %FPCTARGETCPU%} {$INCLUDE %FPCTARGETOS%} {$INCLUDE %FPCVERSION%} There are more... AFAIK it's documented in the Programmer's Manual. Cheers Roland On 3/16/2011 2:18 PM, Mar

Re: [fpc-pascal] macros

2011-03-16 Thread Marcos Douglas
2011/3/16 Roland Schäfer : > Hi, > > INCLUDEs like these will insert the appropriate strings into your code: > > {$INCLUDE %DATE%} > {$INCLUDE %TIME%} > {$INCLUDE %FPCTARGETCPU%} > {$INCLUDE %FPCTARGETOS%} > {$INCLUDE %FPCVERSION%} > > There are more... AFAIK it's documented in the Programmer's Man

Re: [fpc-pascal] Function to know if WIN is 32 or 64

2011-03-16 Thread DaWorm
On Wed, Mar 16, 2011 at 8:45 AM, Marcos Douglas wrote: > The program was compiled in 32-bits but I have to know what kind of OS > is running because my program needs to install somethings. That's why I needed it too. In my case, my code is always 32 bit, but to install a smart card NULL driver,

Re: [fpc-pascal] Function to know if WIN is 32 or 64

2011-03-16 Thread Marcos Douglas
On Wed, Mar 16, 2011 at 12:19 PM, DaWorm wrote: > On Wed, Mar 16, 2011 at 8:45 AM, Marcos Douglas wrote: >> The program was compiled in 32-bits but I have to know what kind of OS >> is running because my program needs to install somethings. > > That's why I needed it too.  In my case, my code is

Re: [fpc-pascal] Function to know if WIN is 32 or 64

2011-03-16 Thread DaWorm
On Wed, Mar 16, 2011 at 11:25 AM, Marcos Douglas wrote: >> I also had to make sure the code was >> being ran as an administrator. > > That's nice. Can you share the function? Again, don't remember where I found this, Google or MSDN probably. Only tested in Delphi. function IsAdmin: Boolean; { --

Re: [fpc-pascal] Function to know if WIN is 32 or 64

2011-03-16 Thread Marcos Douglas
On Wed, Mar 16, 2011 at 2:23 PM, DaWorm wrote: > On Wed, Mar 16, 2011 at 11:25 AM, Marcos Douglas wrote: >>> I also had to make sure the code was >>> being ran as an administrator. >> >> That's nice. Can you share the function? > > Again, don't remember where I found this, Google or MSDN probably

Re: [fpc-pascal] Function to know if WIN is 32 or 64

2011-03-16 Thread Robert Wolfe
On 3/16/2011 8:45 AM, Marcos Douglas wrote: On Wed, Mar 16, 2011 at 9:21 AM, Juha Manninen wrote: Marcos Douglas kirjoitti keskiviikko 16 maaliskuu 2011 13:18:41: On Wed, Mar 16, 2011 at 12:56 AM, Robert Wolfe wrote: WriteLn ; {$IFDEF WIN32} WriteLn ('This is a 32-bit version o

Re: [fpc-pascal] Function to know if WIN is 32 or 64

2011-03-16 Thread Marcos Douglas
On Wed, Mar 16, 2011 at 3:21 PM, Robert Wolfe wrote: > On 3/16/2011 8:45 AM, Marcos Douglas wrote: >> >> [...] >> The problem already been resolved (see the begin of this thread). >> The program was compiled in 32-bits but I have to know what kind of OS >> is running because my program needs to in

[fpc-pascal] Thank you FPC team, Lazarus team and all the community

2011-03-16 Thread Marcos Douglas
Hi, I wrote my first ("real" or "in production") job using FPC and Lazarus, after more than 10 year working with Delphi. An installer to an old application that no have installer. =) This old application uses Oracle, BDE and don't have installer... and, for my client, this is a big problem. The

[fpc-pascal] Free Pascal 2.4.4 RC1 available

2011-03-16 Thread Marco van de Voort
Hello, We have placed the first release-candidate of the Free Pascal Compiler version 2.4.4 on our ftp-servers. You can help improve the upcoming 2.4.4 release by downloading and testing this release. If you want you can report what you have done here: http://wiki.freepascal.org/Testers_2.4.4 Ch

Re: [fpc-pascal] Free Pascal 2.4.4 RC1 available

2011-03-16 Thread silvioprog
Mega-big-full-ultra-power thanks. :) I published this announcement here in Brazil. Thanks again. -- Silvio Clécio = Blog - silvioprog.com.br Twitter - twitter.com/silvioprog LazSolutions - code.google.com/p/lazsolutions Lazarus-BR - http://groups.