Problem mit Datentyp
-
Hi Leute!
Kann mir einer von euch sagen warum mein Proggi abstürtzt wenn ich die Quelltextzeile
COLORREF rgb[700][500];NICHT auskommentiere?
Danke Blind
-
Ich glaub für den Stack sind 1,3 MB ein bissle groß. Erzeug das mal mit new.
-
Wie geht das mit new?
Habe
new COLORREF rgb[700][500];als code Zeile und bekomme
C:\Programme\The Imaging Source Europe GmbH\IC Imaging Control 1.4 \Firststep\FirststepView.cpp(200) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'rgb' C:\Programme\The Imaging Source Europe GmbH\IC Imaging Control 1.4 \Firststep\FirststepView.cpp(200) : error C2065: 'rgb' : nichtdeklarierter Bezeichner C:\Programme\The Imaging Source Europe GmbH\IC Imaging Control 1.4 \Firststep\FirststepView.cpp(200) : error C2109: Index benoetigt ein Feld oder einen Zeigertyp C:\Programme\The Imaging Source Europe GmbH\IC Imaging Control 1.4 \Firststep\FirststepView.cpp(200) : error C2109: Index benoetigt ein Feld oder einen Zeigertypals Fehler für die Zeile.
-
COLORREF* rgb = new COLORREF[700*500]; // ... delete[] rgb;
-
Wie kann ich dem array jetzt eine x_Position und eine Y-Position zuweisen was ich ja mit[x][y] gemacht hatte [x*y] geht nicht da wenn x=1 und y=2 == x=2 und y=1 ist. in dem array steht dan der rgb wert für den punkt.