ソースを参照

* some dummy implementations of delphi compatibility stuff

git-svn-id: trunk@7673 -
florian 18 年 前
コミット
87f87bce0b
1 ファイル変更34 行追加0 行削除
  1. 34 0
      rtl/win32/classes.pp

+ 34 - 0
rtl/win32/classes.pp

@@ -35,6 +35,12 @@ uses
 type
   TWndMethod = procedure(var msg : TMessage) of object;
 
+function MakeObjectInstance(Method: TWndMethod): Pointer;
+procedure FreeObjectInstance(ObjectInstance: Pointer);
+
+function AllocateHWnd(Method: TWndMethod): HWND;
+procedure DeallocateHWnd(Wnd: HWND);
+
 {$i classesh.inc}
 
 implementation
@@ -45,6 +51,34 @@ uses
 { OS - independent class implementations are in /inc directory. }
 {$i classes.inc}
 
+function MakeObjectInstance(Method: TWndMethod): Pointer;
+  begin
+    { dummy }
+    runerror(217);
+  end;
+
+
+procedure FreeObjectInstance(ObjectInstance: Pointer);
+  begin
+    { dummy }
+    runerror(217);
+  end;
+
+
+function AllocateHWnd(Method: TWndMethod): HWND;
+  begin
+    { dummy }
+    runerror(217);
+  end;
+
+
+procedure DeallocateHWnd(Wnd: HWND);
+  begin
+    { dummy }
+    runerror(217);
+  end;
+
+
 initialization
   CommonInit;