On Tue, 2005-11-01 at 23:26, John Samperi wrote:
> (Win XP pro SP2 used)
> 
> G'day all
> 
> I haven't heard back from the author of Cport2.64 so I will try
> to see if I can compile it myself. First question: the code
> comes in different flavors from D3-D6 and then for D7 in a separate
> folder. Which one shall I attempt to compile? (Cport comes up as a
> component along with a couple of other components in the Palette in D6)
> 

I encountered a similar problem. It seems that Lazarus defines a global
variable called Action. I solved it by renaming my variable to MyAction
or something else.

> I'm trying to compile a program written by someone else. I have used
> the convert tools and the first thing it happened is that it
> complained about TButton. Buttons was not listed in the Uses area
> of the original code yet it works with D6, I added Buttons to the
> Uses area of the Lazarus code and the errors disappeared. Now there
> is one more thing (so far) that stops the code from compiling.
> The error says: Duplicate identifier "Action" and the hint
> Identifier already defined in unit FORMS at line 565. I can't find
> line 565. Here is the declaration and the event handler code. Any
> ideas (remember this compiles and workes with D6)
> 
> procedure FormClose(Sender: TObject; var Action: TCloseAction);
> ..........
> procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
> begin
>       if not (DeleteSettings) then
>         WriteRegistry();
> end;
> 
> 
> and last for now, F9 seems to stop working yet I can run the program
> from the menu, also how many of the Tools are supposed to be fully
> working? Some of them seem to do nothing. I really miss the Syntax
> check of D6 as I make lots of mistakes :-)
> 
> 
> Regards
> 
> John Samperi
> 
> ********************************************************
> Ampertronics Pty. Ltd.
> 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
> Tel. (02) 9674-6495       Fax (02) 9674-8745
> Email: [EMAIL PROTECTED]
> Website  http://www.ampertronics.com.au
> *Electronic Design * Custom Products * Contract Assembly
> ********************************************************
> 
> 
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives
-- 
Alan Chamberlain <[EMAIL PROTECTED]>

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

Reply via email to