 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Wed Mar 01, 2006 3:03 pm Post subject: simple interface don't know why i'm getting errors |
|
|
I tried the following and i'm getting the EOleError 'Object factory for
class TActionItem missing'.
program FWTest02;
{$APPTYPE CONSOLE}
uses
ExceptionLog,
SysUtils
, ComObj
;
type
IActionItem = interface
function GetName : String;
end;
TActionItem = class(TComObject, IActionItem)
function GetName : String;
end;
var
ai : IActionItem;
{ TActionItem }
function TActionItem.GetName: String;
begin
Result := 'ActionItem';
end;
begin
ai := TActionItem.Create;
writeln(ai.GetName);
end.
what am i doing wrong? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|