Delphi COM object interface property under Windows 2003

A

Anonymous

Guest
I've used in COM object written in Delphi called from PHP a property of interface type that is linked to another COM object. Its methods are
function TProgressJournal.Get_StudentsList(out Value: IDispatch): HResult;
begin
Value := FStudentsList
end;

function TProgressJournal.Set_StudentsList(
const Value: IDispatch): HResult;
begin
FStudentsList := Value
end;
Than in PHP I set it to another COM object
$objPJ->StudentsList = $objSList;
and in some method I use applyed interface
for i := 0 to (FStudentsList as IStudentsList).Count - 1 do
When I've wrote it under Windows 2000 everything was working correctly. But when I've installed Windows 2003 it has become unworking and in line
for i := 0 to (FStudentsList as IStudentsList).Count - 1 do
COM object raises an exception. I've checked the property using
echo $objPJ->StudentsList;
and it prints nothing so the interface is not applyed to the property. Tell me please how to make working setting interface to a property under Windows 2003.
 
I think this is more a Delphi than a php issue.
The problem might resides in the COM object creation.
 
Back
Top