Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2002-08

Interessting question ..

11 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michail A.Baikov
to Florian Klaempfl

I writing DirectX's filter (DirectShow). I need make Linux version. I think, i have big problem :(

Show quoted text 13 lines
At 16:53 26.08.2002 +0400, you wrote: >Hi, > >Interface's (iUnknown) support in Linux, or only Windows support them? Of course under Linux as well. What would IUnknown prevent from working with Linux? _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Florian Klaempfl
to Michail A.Baikov
you wrote
I writing DirectX's filter (DirectShow). I need make Linux version. I think, i have big problem :(

Well, DirectShow is another story than IUnknown :) I've no idea how and if DirectShow
can be emulated with Linux...

Reply by email

Michail A.Baikov
to Florian Klaempfl

:-)

DirectShow filter use iUnknown-like interface's for normal working. If Fpc support interface's, then, i think, i can write filter under Linux? =)

Or what?

Earlier message 21 lines
----- Original Message ----- From: "Florian Klaempfl" To: Sent: Monday, August 26, 2002 5:34 PM Subject: Re: [fpc-devel]Interessting question .. > At 17:29 26.08.2002 +0400, you wrote: > >I writing DirectX's filter (DirectShow). I need make Linux version. I think, > >i have big problem :( > > Well, DirectShow is another story than IUnknown :) I've no idea how and if > DirectShow > can be emulated with Linux... > > > _______________________________________________ > fpc-devel maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-devel >

Reply by email

Florian Klaempfl
to Michail A.Baikov
you wrote 6 lines
:-) DirectShow filter use iUnknown-like interface's for normal working. If Fpc support interface's, then, i think, i can write filter under Linux? =) Or what?

Well, yes and no. IUnknown is supported and it has a method QueryInterface as well. But the question is which interfaces can be "queried" ...

Reply by email

Sebastian Günther
to Michail A.Baikov: :-) DirectShow filter use iUnknown-like interface's for normal working. If Fpc support…
:-) DirectShow filter use iUnknown-like interface's for normal working. If Fpc support interface's, then, i think, i can write filter under Linux? =)

of course you can implement DirectShow filters on any platform, as a filter is just a COM object which implements certain interfaces. But you cannot use the filters delivered with DirectShow, obviously.

- Sebastian

Reply by email

Maxim Artemev
to Sebastian Günther
Michail A.Baikov schrieb: > :-) > > DirectShow filter use iUnknown-like interface's for normal working. If

Fpc

Show quoted text 6 lines
> support interface's, then, i think, i can write filter under Linux? =) of course you can implement DirectShow filters on any platform, as a filter is just a COM object which implements certain interfaces. But you cannot use the filters delivered with DirectShow, obviously.

Excuse me, but have M$ made DirectX for *NIX?

---
WBR, Max Artemev.
Mathematical department of the Pedagogic University of Moscow, Russia. The Raccoons Homepage http://theraccoons.lionking.ru [Furry] [Pascal++] [*NIX]

Reply by email

Sebastian Günther
to Maxim Artemev
Excuse me, but have M$ made DirectX for *NIX?

no, but COM interfaces are just declarations, so they cannot be bound to an specific operating system.

(Wine/WineX has limited DX support on Linux, however)

- Sebastian

Reply by email

Jonas Maebe
to Pavel V. Ozerski: This program compiled with Delphi works fine but cannot be compiled with FPC 1.1 (build…
Pavel V. Ozerski wrote
At it is shown, there are exust two problems: 1) a procedural variable cannot be absolute to other variable;

This may be a real problem.

2) access to address of procedural variable using @@ is not supported.

You have to use TP or Delphi mode to use this syntax, FPC mode uses another (more clean imho) set of rules. See the manual for more info.

Jonas

Reply by email

Pavel V. Ozerski
to Florian Klaempfl: Well, yes and no. IUnknown is supported and it has a method QueryInterface as well. But…

This program compiled with Delphi works fine but cannot be compiled with FPC 1.1 (build 2002/08/01):

{$apptype console}
function xx:longint;
 begin
  xx:=1;
 end;
type
 txx=function:longint;
var
 x:txx;
 p:pointer;
 y:pointer absolute x; //causes FPC compiler error message
begin
 ;
 p:=pointer(x);//xx result typecasting
 writeln(longint(p));
 ;//xx entry point;
 writeln(longint(p));
 ;//xx entry point;
 writeln(longint(p));
 ;//address of x variable;
 writeln(longint(p));
 p:=@@x;//address of x variable, causes FPC compiler error message
 writeln(longint(p));
end.

At it is shown, there are exust two problems: 1) a procedural variable cannot be absolute to other variable; 2) access to address of procedural variable using @@ is not supported.BTW, using addr(@x) also causes compiler error message.

Sincerely, Pavel V. Ozerski.

P.S. I don't submit this report into bug list because I didn't test this sample with official 1.0.x releases.

Reply by email