Re: [fpc-devel] VMT compatibility

2005-01-30 Thread Michael Van Canneyt
On Sun, 30 Jan 2005, Marco van de Voort wrote: > > // Call C++ function and pass to it our "special" interface > > Result := D3DXLoadMeshHierarchyFromX_FPC_{$}(Filename, MeshOptions, > > pD3DDevice, AllocI, pUserDataLoader, ppFrameHierarchy, ppAnimController); > > > > Dec(PInteger(AllocI)^

Re: [fpc-devel] VMT compatibility

2005-01-30 Thread Alexey Barkovoy
Delphi and FreePascal simplest interfaces already includes IUnknown. So using raw interfaces is incompatible here too. No. You could try to use CORBA interfaces, they don't have IInterface (or IUnknown) as the parent. There is a compiler switch for this. Thanks, I'll look at it. Seems really bette

Re: [fpc-devel] VMT compatibility

2005-01-30 Thread Michael Van Canneyt
On Sun, 30 Jan 2005, Alexey Barkovoy wrote: > - Original Message - > From: "Florian Klaempfl" <[EMAIL PROTECTED]> > > >> For example "DECLARE_INTERFACE_(IClassFactory, IUnknown)" in C++ is > >> expanded > >> to "struct FAR IClassFactory : public IUnknown", so really public parts of > >>

Re: [fpc-devel] VMT compatibility

2005-01-30 Thread Marco van de Voort
> // Call C++ function and pass to it our "special" interface > Result := D3DXLoadMeshHierarchyFromX_FPC_{$}(Filename, MeshOptions, > pD3DDevice, AllocI, pUserDataLoader, ppFrameHierarchy, ppAnimController); > > Dec(PInteger(AllocI)^, $C); // Patch interface VMT - BACK > end; > > But I rea

Re: [fpc-devel] VMT compatibility

2005-01-30 Thread Alexey Barkovoy
- Original Message - From: "Florian Klaempfl" <[EMAIL PROTECTED]> For example "DECLARE_INTERFACE_(IClassFactory, IUnknown)" in C++ is expanded to "struct FAR IClassFactory : public IUnknown", so really public parts of VMT (with positive offset) are always [should be] compatible. Surely

Re: [fpc-devel] VMT compatibility

2005-01-30 Thread Florian Klaempfl
Alexey Barkovoy wrote: - Original Message - From: "Michael Van Canneyt" <[EMAIL PROTECTED]> Delphi is compatible at least with Borland C++ and MS VC++. And taking in accout how COM intefaces are implemented in C++ (I'm supposing here all C++ compilers support the same syntax) - each C++

Re: [fpc-devel] VMT compatibility

2005-01-30 Thread Alexey Barkovoy
- Original Message - From: "Michael Van Canneyt" <[EMAIL PROTECTED]> Delphi is compatible at least with Borland C++ and MS VC++. And taking in accout how COM intefaces are implemented in C++ (I'm supposing here all C++ compilers support the same syntax) - each C++ compiler supporting MS

Re: [fpc-devel] VMT compatibility

2005-01-29 Thread DrDiettrich
Alexey Barkovoy wrote: > Delphi is compatible at least with Borland C++ and MS VC++. And taking in > accout > how COM intefaces are implemented in C++ (I'm supposing here all C++ compilers > support the same syntax) - each C++ compiler supporting MS way to declare COM > interfaces has compatible

Re: [fpc-devel] VMT compatibility

2005-01-29 Thread Michael Van Canneyt
On Sun, 30 Jan 2005, Alexey Barkovoy wrote: > >> I where any chance to see FreePascal generating VMT's for classes that is > >> more compatible with C++ / TurboPascal / Delphi one? > >> To explain mine question: recently I've been porting Delphi framework > >> interfacing to C++ code to FPC and

Re: [fpc-devel] VMT compatibility

2005-01-29 Thread Alexey Barkovoy
I where any chance to see FreePascal generating VMT's for classes that is more compatible with C++ / TurboPascal / Delphi one? To explain mine question: recently I've been porting Delphi framework interfacing to C++ code to FPC and finded out that althrow Delphi VMT layout is compatible to C++ o

Re: [fpc-devel] VMT compatibility

2005-01-29 Thread Alexey Barkovoy
I where any chance to see FreePascal generating VMT's for classes that is more compatible with C++ / TurboPascal / Delphi one? To explain mine question: recently I've been porting Delphi framework interfacing to C++ code to FPC and finded out that althrow Delphi VMT layout is compatible to C++ o

Re: [fpc-devel] VMT compatibility

2005-01-29 Thread Jonas Maebe
On 29 jan 2005, at 22:41, Alexey Barkovoy wrote: I where any chance to see FreePascal generating VMT's for classes that is more compatible with C++ / TurboPascal / Delphi one? To explain mine question: recently I've been porting Delphi framework interfacing to C++ code to FPC and finded out that

[fpc-devel] VMT compatibility

2005-01-29 Thread Alexey Barkovoy
Hi, I where any chance to see FreePascal generating VMT's for classes that is more compatible with C++ / TurboPascal / Delphi one? To explain mine question: recently I've been porting Delphi framework interfacing to C++ code to FPC and finded out that althrow Delphi VMT layout is compatible to C