๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi
Article #345466

Re: Lazarus/Scanline

#345466
From: Piotr S.
Date: Thu, 22 Dec 2016 08:30
21 lines
1546 bytes
W dniu 2016-12-22 o 08:58, stchebel@gmail.com pisze:
>
> ObrazPodstawowy:=TBitmap.Create;
> ObrazPodstawowy.LoadFromFile('obrazek.bmp');
> y:=0;
> P:=ObrazPodstawowy.ScanLine[y];
> i:=0;
> k:=P[i];
>
> W ostatnim wierszu Lazarus wywala bล‚ฤ…d kompilacji : Incompatible types: got "TbyteArray" expected "Byte".
>
> Tymczasem to samo w D6 przechodzi bez problemu.
>

http://wiki.freepascal.org/Code_Conversion_Guide

Patrz "When accessing values in a pointer to a record you must 
dereference first". Dotyczy typรณw record ale widocznie w tym przypadku 
jest tak samo.

P.S.
Technical Details
Message-ID: <o3g2vn$p1h$1@news.icm.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!.POSTED!not-for-mail
References: <3cb50193-7340-46db-b3a2-a9155565d116@googlegroups.com> <o3ft84$6qm$1@news.icm.edu.pl> <2b47c46c-9581-47d8-9cd7-7e5ae98efd13@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!.POSTED!not-for-mail
From: "Piotr S." <sashxat@interia.pl>
Newsgroups: pl.comp.lang.delphi
Subject: Re: Lazarus/Scanline
Date: Thu, 22 Dec 2016 09:30:50 +0100
Organization: ICM, Uniwersytet Warszawski
Lines: 21
Message-ID: <o3g2vn$p1h$1@news.icm.edu.pl>
References: <3cb50193-7340-46db-b3a2-a9155565d116@googlegroups.com> <o3ft84$6qm$1@news.icm.edu.pl> <2b47c46c-9581-47d8-9cd7-7e5ae98efd13@googlegroups.com>
NNTP-Posting-Host: ibw194.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: news.icm.edu.pl 1482395447 25649 79.189.48.194 (22 Dec 2016 08:30:47 GMT)
X-Complaints-To: usenet@news.icm.edu.pl
NNTP-Posting-Date: Thu, 22 Dec 2016 08:30:47 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1
In-Reply-To: <2b47c46c-9581-47d8-9cd7-7e5ae98efd13@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit