AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Object-Pascal / Delphi-Language Delphi If a and b and c and d... Geht daas überhaupt in Delphi?
Thema durchsuchen
Ansicht
Themen-Optionen

If a and b and c and d... Geht daas überhaupt in Delphi?

Ein Thema von Virchov · begonnen am 26. Mär 2004 · letzter Beitrag vom 26. Mär 2004
Antwort Antwort
Seite 1 von 2  1 2      
Virchov

Registriert seit: 15. Mär 2004
Ort: Bäärlin
109 Beiträge
 
#1

If a and b and c and d... Geht daas überhaupt in Delphi?

  Alt 26. Mär 2004, 13:08
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.
  Mit Zitat antworten Zitat
DelphiDeveloper

Registriert seit: 9. Apr 2003
Ort: Köln
256 Beiträge
 
Delphi XE2 Enterprise
 
#2

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

  Alt 26. Mär 2004, 13:12
Delphi-Quellcode:
if (minLeft^ = 0) and (maxLeft^ = (cxImage -1)) and
   (minTop^ = 0) and (maxTop^ = (cyImage -1)) then
and bindet staerker
  Mit Zitat antworten Zitat
Virchov

Registriert seit: 15. Mär 2004
Ort: Bäärlin
109 Beiträge
 
#3

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

  Alt 26. Mär 2004, 13:16
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
  Mit Zitat antworten Zitat
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#4

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

  Alt 26. Mär 2004, 13:19
Liegt es eventuell an diesem Konstrukt:
maxLeft^ = (cxImage -1) Was willst du denn da vergleichen?
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
DelphiDeveloper

Registriert seit: 9. Apr 2003
Ort: Köln
256 Beiträge
 
Delphi XE2 Enterprise
 
#5

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

  Alt 26. Mär 2004, 13:19
sind die derefenzierungen auch alle int?
  Mit Zitat antworten Zitat
Virchov

Registriert seit: 15. Mär 2004
Ort: Bäärlin
109 Beiträge
 
#6

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

  Alt 26. Mär 2004, 13:21
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?
  Mit Zitat antworten Zitat
DelphiDeveloper

Registriert seit: 9. Apr 2003
Ort: Köln
256 Beiträge
 
Delphi XE2 Enterprise
 
#7

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

  Alt 26. Mär 2004, 13:22
Zitat:
Müssen die sein, da wenn ich einen pInteger dereferenziere kriege ich immer einen integer. Oder?
sehe ich auch so
  Mit Zitat antworten Zitat
Virchov

Registriert seit: 15. Mär 2004
Ort: Bäärlin
109 Beiträge
 
#8

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

  Alt 26. Mär 2004, 13:23
Zitat von Luckie:
Liegt es eventuell an diesem Konstrukt:
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
  Mit Zitat antworten Zitat
DelphiDeveloper

Registriert seit: 9. Apr 2003
Ort: Köln
256 Beiträge
 
Delphi XE2 Enterprise
 
#9

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

  Alt 26. Mär 2004, 13:46
sieht alles richtig aus. da habe ich aus der Ferne auch keine
Idee mehr was falsch sein koennte
  Mit Zitat antworten Zitat
Virchov

Registriert seit: 15. Mär 2004
Ort: Bäärlin
109 Beiträge
 
#10

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

  Alt 26. Mär 2004, 13:51
Hexerei... Nach 20 Versuch ging es plötzlich.... Hm
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 1 von 2  1 2      


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:26 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz