E2034 Cannot convert 'int' to 'void *'
-
Hi ich hab probier folgendes Bild bei klick auf einem Button ausgeben zu lassen:
void __fastcall TForm1::Button1Click(TObject *Sender) { Canvas->Rectangle (0,10, ClientWidth-10, ClientHeight-10); Canvas->Ellipse(20,20, ClientWidth-20, ClientHeight-20); Canvas->MoveTo(0, ClientHeight/2); Canvas->LineTo(ClientWidth, ClientHeight/2); Canvas->MoveTo(ClientWidth/2, 0); Canvas-LineTo (ClientWidth/2, ClientHeight); }Aber ich bekomme jetzt immer folgende Compiler Errors wenn ich das Projekt compilieren möchte:
[C++ Error] Grafik.cpp(25): E2034 Cannot convert 'int' to 'void *'
[C++ Error] Grafik.cpp(25): E2340 Type mismatch in parameter 1 (wanted 'void *', got 'int')
[C++ Error] Grafik.cpp(25): E2193 Too few parameters in call to '__stdcall LineTo(void *,int,int)'Kann mir vielleicht jemand helfen?
Gruß
Manuh
-
Fällt dir an der Zeile wirklich nichts auf?
-
was ist der Unterschied zwichen - und -> ?

-
Ich trottel!
Argh!
Dankeschön