You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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 issue reported on code.google.com by
[email protected]
on 20 Dec 2010 at 11:54The text was updated successfully, but these errors were encountered: