Delphi-PRAXiS
Seite 1 von 2  1 2      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi If a and b and c and d... Geht daas überhaupt in Delphi? (https://www.delphipraxis.net/18945-if-b-c-d-geht-daas-ueberhaupt-delphi.html)

Virchov 26. Mär 2004 14:08


If a and b and c and d... Geht daas überhaupt in Delphi?
 
Tach, Herrschaften!

Ich habe folenden Codeteil:

Delphi-Quellcode:

 if minLeft^ = 0 and maxLeft^ = (cxImage -1) and
    (minTop^ = 0) and maxTop^ = (cyImage -1)  then

//-----------------------------ANFANG BLOCK 2-----------------------------------

  begin
Geht aber nicht, der Compiler sagt: Operator ist auf diesen Typ nicht anwendbar.Und: inkopatible Typen. Voller Quatsch, eiglentlich. Woran könnte das liegen?

Danke

ps minleft maxleft, mintop und maxtop sint pInteger, cxImage und cyImage - Integer. :pale:

DelphiDeveloper 26. Mär 2004 14:12

Re: If a and b and c and d... Geht daas überhaupt in Delphi
 
Delphi-Quellcode:
if (minLeft^ = 0) and (maxLeft^ = (cxImage -1)) and
   (minTop^ = 0) and (maxTop^ = (cyImage -1))  then
and bindet staerker

Virchov 26. Mär 2004 14:16

Re: If a and b and c and d... Geht daas überhaupt in Delphi
 
Zitat:

Zitat von DelphiDeveloper
Delphi-Quellcode:
if (minLeft^ = 0) and (maxLeft^ = (cxImage -1)) and
   (minTop^ = 0) and (maxTop^ = (cyImage -1))  then
and bindet staerker




geht trotzdem nicht, Der Compiler sagt zu zweiter Zeile: Operator ist auf diesen Operandentyp nicht anwendbar :warn:

Luckie 26. Mär 2004 14:19

Re: If a and b and c and d... Geht daas überhaupt in Delphi
 
Liegt es eventuell an diesem Konstrukt:
Delphi-Quellcode:
maxLeft^ = (cxImage -1)
Was willst du denn da vergleichen?

DelphiDeveloper 26. Mär 2004 14:19

Re: If a and b and c and d... Geht daas überhaupt in Delphi
 
sind die derefenzierungen auch alle int?

Virchov 26. Mär 2004 14:21

Re: If a and b and c and d... Geht daas überhaupt in Delphi
 
Zitat:

Zitat von DelphiDeveloper
sind die derefenzierungen auch alle int?

Müssen die sein, da wenn ich einen pInteger dereferenziere kriege ich immer einen integer. Oder?

DelphiDeveloper 26. Mär 2004 14:22

Re: If a and b and c and d... Geht daas überhaupt in Delphi
 
Zitat:

Müssen die sein, da wenn ich einen pInteger dereferenziere kriege ich immer einen integer. Oder?
sehe ich auch so

Virchov 26. Mär 2004 14:23

Re: If a and b and c and d... Geht daas überhaupt in Delphi
 
Zitat:

Zitat von Luckie
Liegt es eventuell an diesem Konstrukt:
Delphi-Quellcode:
maxLeft^ = (cxImage -1)
Was willst du denn da vergleichen?




Delphi-Quellcode:


procedure GetROI_CAL_RGB_VIS
(prgb: pRGBTRIPLE;                          //Pointer to first pixel
 cxImage, cyImage:integer;                   //Width, Height   of total image
ShowBoundingBox,                             //if !0, Bounding Box is drawn
ShowROIHistogram: boolean;                   //if !0, ROI Histogram is drawn
roiPosArray: pInteger;                      //Array   containg ROI positions
roiMask: pBoolean;                          //Mask,pixel[i]   is in ROI if roiMask[i]
minLeft, maxLeft: pinteger;                  //Vertical Bounding   Box   Scanlines
minTop, maxTop: pinteger;                    //Horizontal Bounding Box Scanlines
numROIPixels: pinteger;                      //number of pixels contained in ROI
Check4Rect: boolean;                         //1 = check for ellipse and rectangle, 0 just ellipse
fROICutOffLevel: single);                    //ROI minimal Histogram presence

DelphiDeveloper 26. Mär 2004 14:46

Re: If a and b and c and d... Geht daas überhaupt in Delphi
 
sieht alles richtig aus. da habe ich aus der Ferne auch keine
Idee mehr was falsch sein koennte :!:

Virchov 26. Mär 2004 14:51

Re: If a and b and c and d... Geht daas überhaupt in Delphi
 
Hexerei... Nach 20 Versuch ging es plötzlich.... Hm


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:19 Uhr.
Seite 1 von 2  1 2      

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz