Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class type expected, but got "IUnknown" #14

Open
GoogleCodeExporter opened this issue Jun 22, 2015 · 3 comments
Open

class type expected, but got "IUnknown" #14

GoogleCodeExporter opened this issue Jun 22, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 20 Dec 2010 at 11:54

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 21 Dec 2010 at 10:48

Attachments:

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 21 Dec 2010 at 6:55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant