![]() |
If a and b and c and d... Geht daas überhaupt in Delphi?
Tach, Herrschaften!
Ich habe folenden Codeteil:
Delphi-Quellcode:
Geht aber nicht, der Compiler sagt: Operator ist auf diesen Typ nicht anwendbar.Und: inkopatible Typen. Voller Quatsch, eiglentlich. Woran könnte das liegen?if minLeft^ = 0 and maxLeft^ = (cxImage -1) and (minTop^ = 0) and maxTop^ = (cyImage -1) then //-----------------------------ANFANG BLOCK 2----------------------------------- begin Danke ps minleft maxleft, mintop und maxtop sint pInteger, cxImage und cyImage - Integer. :pale: |
Re: If a and b and c and d... Geht daas überhaupt in Delphi
Delphi-Quellcode:
and bindet staerker
if (minLeft^ = 0) and (maxLeft^ = (cxImage -1)) and
(minTop^ = 0) and (maxTop^ = (cyImage -1)) then |
Re: If a and b and c and d... Geht daas überhaupt in Delphi
Zitat:
geht trotzdem nicht, Der Compiler sagt zu zweiter Zeile: Operator ist auf diesen Operandentyp nicht anwendbar :warn: |
Re: If a and b and c and d... Geht daas überhaupt in Delphi
Liegt es eventuell an diesem Konstrukt:
Delphi-Quellcode:
Was willst du denn da vergleichen?
maxLeft^ = (cxImage -1)
|
Re: If a and b and c and d... Geht daas überhaupt in Delphi
sind die derefenzierungen auch alle int?
|
Re: If a and b and c and d... Geht daas überhaupt in Delphi
Zitat:
|
Re: If a and b and c and d... Geht daas überhaupt in Delphi
Zitat:
|
Re: If a and b and c and d... Geht daas überhaupt in Delphi
Zitat:
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 |
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 :!: |
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. |
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