Re: [lazarus] Why do Delphi users hate Lazarus so much?

2008-01-27 Thread Gabor Boros

I Delphi user and I love Lazaros (and FPC). :-)
See the newsgoup name. Contains delphi and borland. That is a newsgroup 
on Borland's own newsserver about Delphi.


Gabor

John Stoneham írta:

borland.public.delphi.non-technical


_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] File Monitoring application

2007-04-28 Thread Gabor Boros

Hi,

FileMon from Sysinternals?
http://download.sysinternals.com/Files/Filemon.zip

Gabor

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: Problem with message handling

2006-11-24 Thread Gabor Boros

Thanks Henry! I think using messages is simpler and right for me.

Gabor

Henry Vermaak írta:

hi gabor

the "event" function is there so you can give the handle to your event
(which you get from CreateEvent).  then you can create a thread that
blocks on this event with one of the wait functions
(WaitForSingleObject, for instance).  when the reader receives a scan,
it will set the event and your thread will resume and process the scan
buffer.

now this method is also platform specific, since the event functions
are in the windows unit.  can anyone comment on this for linux?  my
hunch is that a similar thing must exist...

henry


_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: Problem with message handling

2006-11-24 Thread Gabor Boros
I am developing an application for a mobil computer with an integrated 
barcode scanner which is running WinCE. The API presents two solutions.


DWORD SCAN_ReadLabelMsg(HANDLE hScanner,LPSCAN_BUFFER lpScanBuffer,
HWND,UINT uiMsgNo, DWORD dwTimeOut,
LPDWORD lpdwRequestID);

DWORD SCAN_ReadLabelEvent(HANDLE hScanner,LPSCAN_BUFFER lpScanBuffer,
  HANDLE hEvent,DWORD dwTimeOut,
  LPDWORD lpdwRequestID);

I use first because I don't know what is Event in the second case.

Gabor



Micha Nelissen írta:

Gabor Boros wrote:

Hi,

My problem is, the Scan procedure not executed.
I tried with Delphi and working.
I am missed something or is this a bug?


Message passing/handling is in general not to be relied upon, for
cross-platform reasons. There are other alternatives usually. What is it
you want to accomplish ?

Micha



_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: Problem with message handling

2006-11-24 Thread Gabor Boros

It's working! Thanks Felipe!

Gabor

Felipe Monteiro de Carvalho írta:

On 11/23/06, Gabor Boros <[EMAIL PROTECTED]> wrote:

My problem is, the Scan procedure not executed.
I tried with Delphi and working.
I am missed something or is this a bug?


User messages are disabled by default. It should work if you recompile 
LCL with


-dPassWin32MessagesToLCL

If you don´t know how to recompile LCL, just ask.



_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Problem with message handling

2006-11-23 Thread Gabor Boros

Hi,

My problem is, the Scan procedure not executed.
I tried with Delphi and working.
I am missed something or is this a bug?

Gabor


const
  WM_SCAN=WM_APP+1;

type
  TOnScanEvent=procedure;

  T_MC1000=class(TWinControl)
  private
FOnScan:TOnScanEvent;
  protected
procedure WMScan(var Msg:TMessage); message WM_SCAN;
  public
constructor Create(AOwner: TComponent); override;
property OnScan:TOnScanEvent read FOnScan write FOnScan;
  end;

implementation

constructor T_MC1000.Create(AOwner: TComponent);
begin
  inherited;
  Visible:=False;
  Parent:=AOwner as TWinControl;
end;

procedure T_MC1000.WMScan(var Msg:TMessage);
begin
  if Assigned(FOnScan) then OnScan;
  inherited;
end;

procedure Scan;
begin
  MessageBeep(0);
end;

procedure TForm1.Button1Click(Sender: TObject);
var
  mc1000:T_MC1000;

begin
  mc1000:=T_MC1000.Create(Self);
  mc1000.OnScan:[EMAIL PROTECTED];
  SendMessage(mc1000.Handle,WM_SCAN,0,0);
end;

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Cannot initialize a form from OnShow

2006-11-16 Thread Gabor Boros

Hi,

The problem appear under WinCE. I tried with Lazarus SVN 10209 and FPC 
SVN 5191 and 5370.

Create a new application, put a label and a listbox on the form, and
write the following lines into the form's OnShow event.

Label1.Caption:='xxx';
ListBox1.Items.Add('yyy');

Run the application and see, the label's caption not changed and the 
listbox is empty.


Gabor

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Bug 7279

2006-09-15 Thread Gabor Boros

Hi!

The bug was solved by WinCE specific fixes in FPC 2.1.1.
Please close this bug.

Thanks!

Gabor

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: 2.0.4-rc3 available

2006-08-16 Thread Gabor Boros

Hi,

The "access permissions" is wrong: 700, the file is accessible for the 
owner only.


Gabor

Michael Van Canneyt írta:
Try 
ftp://ftpmaster.freepascal.org/pub/fpc/beta/2.0.4-rc3/i386-win32/fpc-2.0.4.i386-win32.exe


That should work.

Michael.



_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: Directory changes in the win32 (snapshot) installer

2006-07-10 Thread Gabor Boros
The startlazarus.exe is broken and if I try Tools/Build Lazarus the 
result is "c:\lazarus_snapshot\lcl\Graphics.pp(36,9) Fatal: Can't find 
unit Contnrs".


Gabor


Vincent Snijders írta:

Hi,

I have been restructuring the directory layout of fpc in the win32 
snapshots. Now source, compiler and units are in the fpc\2.1.1 
subdirectory and pp and fpcsrc subdirectories.


Users of the snapshots are advised to install the new snapshots 
(20060710 and later) in an empty directory.


Vincent.



_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: Event declaration problem

2006-06-30 Thread Gabor Boros

Micha, Vincent many Thanks!

Gabor

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Event declaration problem

2006-06-30 Thread Gabor Boros

Hi!

A short example:

type

  TOnProgressEvent=procedure (x:integer);

  TObj=class(TObject)
  private
FOnProgress:TOnProgressEvent;
  public
property OnProgress:TOnProgressEvent read FOnProgress write 
FOnProgress;

  end;

procedure proc1(x:integer);
begin
end;

var
  Obj:TObj;

begin
  Obj:=TObj.Create;
  Obj.OnProgress:=proc1;
end.

My problem is: I get an "Error: Wrong number of parameters specified"
error message on "Obj.OnProgress:=proc1;" line.

My question is why? I tried this with Delphi and working.

Gabor

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] The compiler don't eat this. Why???

2006-06-09 Thread Gabor Boros

Hi Alexandre!

I quoted the FPC's Reference because I think Felipe is wrong. You 
understood this.

But now I'm completely confused.

Alexandre Leclerc írta:

> When you "subclass" you can reimplement any "level of visibility" of
> the ancestor class and also change this "level of visibility", but
> only downward (more private, never mor public).

1. case:
Txxx = class(TObject)
  private
procedure Method_1(Value:Integer); virtual;
  end;

  Tzzz = class(Txxx)
  protected
procedure Method_1(Value:Integer); override;
  end;

2. case:
Txxx = class(TObject)
  protected
procedure Method_1(Value:Integer); virtual;
  end;

  Tzzz = class(Txxx)
  private
procedure Method_1(Value:Integer); override;
  end;

The 1. and the 2. case is working too. This is not problem for me, just 
after you wrote this is not workable. Sorry if I misunderstood your reply.


Gabor

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] The compiler don't eat this. Why???

2006-06-09 Thread Gabor Boros


From FPC's Reference Guide:

Private
All fields and methods that are in a private block, can only be accessed 
in the module
(i.e. unit) that contains the class definition. They can be accessed 
from inside the classes’

methods or from outside them (e.g. from other classes’ methods)

Protected
Is the same as Private, except that the members of a Protected section 
are also
accessible to descendent types, even if they are implemented in other 
modules.


Public
sections are always accessible.

Published
 Is the same as a Public section, but the compiler generates also type 
information that
is needed for automatic streaming of these classes. Fields defined in a 
published section

must be of class type. Array properties cannot be in a published section.
***

Gabor

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: The compiler don't eat this. Why???

2006-06-09 Thread Gabor Boros

Thanks!

Gabor

Alexandre Leclerc írta:

Needs to be virtual or/and abstract, depending of your intention.


type
   Txxx = class(TObject)
   private
 procedure Method_1(Value:Integer);  Virtual;  //Abstract;
   end;




_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] The compiler don't eat this. Why???

2006-06-09 Thread Gabor Boros

Hi!

The compiler's opinion is:
"There is no method in an ancestor class to be overridden"

Any idea?

Gabor

/*/
type
  Txxx = class(TObject)
  private
procedure Method_1(Value:Integer);
  end;

  Tzzz = class(Txxx)
  private
procedure Method_1(Value:Integer); override;
  end;

begin
end.
/*/

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] IDE don't unload/reset debugger after project execution

2006-06-01 Thread Gabor Boros

Hi!

I wrote a very small test application for testing UIB.
If I run the project first time everything is fine, but if run it again 
I get an "EUIBError" message. If I reset the debugger from Run menu 
between executions the program is start properly. My question is: why 
the gdb.exe is still in memory after the program execution is stopped.
And an another thing. If I create a new empty project and run from the 
IDE, and exit from it, and run and exit.. The gdb.exe is still in 
the memory and eat more and more space.
After I executed anything gdb is loaded until I reset manually or exit 
from IDE. Are above things bugs or features?


I use Win XP Prof SP2 and Lazarus 0.9.16.

Thanks for the answers.

Gabor

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Win32 snapshot build bug

2006-05-24 Thread Gabor Boros

Hi!

I installed the latest win32 snapshot build 
(Lazarus-0.9.15-20060524-win32.exe) and the package installation not 
working properly. If I open a package with Components/Open package file, 
 in the Package dialog box the Compile button is disabled and in the 
dialog's status bar I see the "package xyz not saved" message. But if I 
build Lazarus from SVN the dialog working correctly. Snapshot and SVN 
revision is same: 9347.


Any idea?

Gabor

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Unit output directory vs Target file name

2006-03-11 Thread Gabor Boros

Hi,

If I create a new project, set the 'Unit output directory' in 
Project/Compiler options in example to 'C:\Devel\Bin\Unit' the generated 
files(.o;.ppu;.compiled;.exe) placed into the 'C:\Devel\Bin\Unit' 
directory. It's correct, I think. But if I set the 'Target file name' in 
Project options too eg. to 'C:\Devel\Bin\project1.exe' only the
'.compiled' file placed into the 'Unit output directory' and the other 
files placed into the 'C:\Devel\Bin'. This is a feature or a bug?

I tested on Windows XP Prof SP2 with SVN Revision 8910.

Gabor

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Debugger anomaly

2006-03-09 Thread Gabor Boros

Hi!

I hope somebody understand my bla-bla. My native language is Hungarian
(and Pascal ;-) ).

I reported a bug previously with ID 1699. Yesterday I think eliminate
that by myself. I don't debug Lazarus never before. Installed actual
snapshot build, but debugger not working in it. Next. Installed FPC
2.0.2 and exported Lazarus sources from SVN. After builded, run and
configured the
environment and debugger options. (Compiler path, FPC source, Make path,
Debugger type and path set to the FPC's proper directories) But
debugger's approach is was same. I played with the problem many hours
and keep on today. Today's snapshot revision is 8893. Debugger not
working in it neither. Fetched the same revision's sources from SVN,
builded, started, configured BUT then debugger path is set to the
snapshot's debugger directory. And debugger working, but only if I set a
breakpoint,  'Run to cursor' not working. Now I have a """working"""
debugger, I think. I went back to the original problem debug Lazarus.
I found the lazarus.lpi file in the ide directory. I think this is the
starting point of the debugging mission. BUT. If i put a breakpoint on
first line the debugger walk above. If i put in the second line the
debugger working normal and program stop and waiting for me. And the
'Run to cursor' working too in lazarus.lpi but only from the second line
after main begin. But not in every case. I got some AV-s, Debugger error
etc. I'd like eliminate bugs from Lazarus in the future not just
discovered by me, but the debugger in this state is unusable in my
opinion. A small observation.  GDB version in FPC distribution is 6.2.1
(cygwin) and in Lazarus 6.0 (mingw). In FPC IDE the GDB is working
properly. Why not working with Lazarus because the compiler is same?

Gabor

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives