Autor Beitrag
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Mo 29.03.04 16:57 
Hi,
OpenGL.RenderScene := Form1.RenderScene; will nicht kompilieren, Inkompatible Typen: Reguläre Prozedur und Methodenzeiger.
So ist das ganze deklariert im private-Bereich von TForm1:
procedure RenderScene;
Und so ist das im Public-Bereich der Klasse TOpenGL:
RenderScene: Procedure;

Hälp?
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Mo 29.03.04 19:10 
imho ist dein problem, dass OpenGL.RenderScene als reguläre Prozedur deklariert wird.
Form1.RenderScene ist aber eine Methodenzeiger (Methode ist eine prozedur/funktion in einer Klasse/Objekt)
Wenn du Form1.RenderScene außerhalb von TForm deklarierst dürfte es funktionieren.


raziel

_________________
JSXGraph
Alibi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Mo 29.03.04 22:37 
Scheint zu gehen, ich meld mich, wenn doch nicht. (Ich misstraue der Sache irgendwie noch. :)).
Danke soweit.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mo 29.03.04 22:54 
Alibi hat folgendes geschrieben:
Ich misstraue der Sache irgendwie noch. :)

Es stimmt aber so..! ;)

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!