cxflag203 / superobject

Automatically exported from code.google.com/p/superobject
0 stars 0 forks source link

class type expected, but got "IUnknown" #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I've downloaded super object 1.2.4.
2. I've written very simple pascal program which includes "superobject" in uses 
part.
3. When I compile the program, compiler gives me that error:
superobject.pas(1304, 17) Error: class type expected, but got "IUnknown"

What is the expected output? What do you see instead?
I expected it to work properly. Because due to your documents, it should work 
on Free Pascal.

What version of the product are you using? On what operating system?
I am using Free Pascal 2.4.2 as compiler on Ubuntu 10.10 Destop version.

Please provide any additional information below.
My simple program is:

{$UNITPATH ../../units/SuperObject124/}

uses superobject;
begin
end.

Original issue reported on code.google.com by cakirogl...@gmail.com on 20 Dec 2010 at 11:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
1304th line of superobject.pas is

Add(ISuperObject(intf)) else

I have changed it with

Add(intf as ISuperObject) else

Now there is no error at compilation but I am not sure if that new code is 
right.

Whops!! When I compile and run the program (I attached the code `test.pas`), it 
gives me errors. (I ve attached it). I don't know if that problem because of 
that new code. But I don't think so.

Original comment by cakirogl...@gmail.com on 21 Dec 2010 at 10:48

Attachments:

GoogleCodeExporter commented 9 years ago
One more thing! Just a minute ago, I have changed
{.$DEFINE DEBUG}

with

{$DEFINE DEBUG}

And now everything works well. I checked the code (superobject.pas) about that 
DEBUG definition, actually there is nothing too much thing about it though.

Original comment by cakirogl...@gmail.com on 21 Dec 2010 at 6:55