AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Konvertierungs problem C nach Delphi

Ein Thema von EWeiss · begonnen am 14. Mär 2007 · letzter Beitrag vom 14. Mär 2007
 
EWeiss
(Gast)

n/a Beiträge
 
#1

Konvertierungs problem C nach Delphi

  Alt 14. Mär 2007, 21:30
habe ein kleines konvertierungs problem von c nach Delphi


Code:
h+=specdata[i*8+j+c*576];
h ist single original(float)
habe es so übersetzt!
h+ This_Mod^.Spectrumdata[i * 8 + j + c * 576]; Fehler.
[Pascal Error] VisCDRom.pas(423): E2008 Incompatible types


Code:
h/=(1.0f*255.0f);
habe es so übersetzt!
h/ (1.0 * 255.0); Fehler.
[Pascal Error] VisCDRom.pas(424): E2014 Statement expected, but expression of type 'Extended' found

Habe gelesen das 'h/' auch in Delphi verwendet wird genauso wie 'h+'
Zitat:
/ (slash) Similar. Object Pascal always returns a floating point result.
+ (plus) OK. Also used for string concatenation and set union.
ob das nun im zusammenhang mit h/ und h+ steht .. keine ahnung.

Scheint aber nicht zusammen zu passen.

gruss Emil
  Mit Zitat antworten Zitat
 


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:48 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-2025 by Thomas Breitkreuz