Re: [fpc-pascal] C++ > C wrapper callback > Pascal Continues

2005-07-26 Thread Peter Vreman
>> Urbansound wrote: >>> Hi List, >>>A Windows pascal application is recieving data from a C++, VisC API, >>> which is set up as a class, and a conventional C wrapper, attempting to >>> extend functionality into Pascal. C++ and C are vis 4.2 MFC >>> >>> function L1_Callback(quote : pointer) :

[fpc-pascal] Doubts about QueryInterface

2005-07-26 Thread Agustin Barto
When I try to compile a unit in delphi mode with the following function function Implements(out AReference; const AObject: TObject; const AInterface: TGUID): Boolean; begin Result := (AObject is TInterfacedObject) and ((AObject as TInterfacedObject).QueryInterface(AInterface, AReference) = 0

[fpc-pascal] C++ > C wrapper callback > Pascal Continues

2005-07-26 Thread Urbansound
Urbansound wrote: Hi List, A Windows pascal application is recieving data from a C++, VisC API, which is set up as a class, and a conventional C wrapper, attempting to extend functionality into Pascal. C++ and C are vis 4.2 MFC function L1_Callback(quote : pointer) : integer; stdcall; export

Re: [fpc-pascal] C++ > C wrapper callback > Pascal

2005-07-26 Thread Michalis Kamburelis
Urbansound wrote: Hi List, I'm probably over my head on this one and some of the FPC forum entries talk about limited functionality toward C++, but here goes. A Windows pascal application is recieving data from a C++, VisC API, which is set up as a class, and a conventional C wrapper,