You are here: Re: PHP to a COM object « PHP Programming Language « IT news, forums, messages
Re: PHP to a COM object

Posted by Steve on 11/14/07 18:27

"Alex" <d_keyoke@hotmail.com> wrote in message
news:473b3bee$0$30024$426a74cc@news.free.fr...
> "Steve" <no.one@example.com> wrote in message
> news:odG_i.89$qJ1.84@newsfe06.lga...
>>> It's from a software vendor. I meant to say that I have doc with the
>>> object, but all the examples of object usage are in VB, which I have
>>> long forgotten. They use lists, for example all around the place, and I
>>> don't remember how to translate this to PHP :)
>>
>> so, you know the object's interfaces...just not how to code it in php?
>> same way as any other object...
>>
>> $o->interface;
>> $o->interface(param);
>
>> etc.
>>
>> am i missing something?
>
> I'm pretty sure you're missing a lot less than I do :)
>
> But it's getting better. I replaced "new COM()" by com_load() and now I
> can use com_print_typeinfo which returns all the innards of the object. I
> don't really know why com_load works better, but it is the case.
>
> I also got to access one of the lists in the object. $....->item($i) . I'm
> not sure whether it's a special syntax instead of item[$i] or those
> item()s are really functions.
>
> So things are getting better :)
>
>
> However, my next blocking point is something called a factory. It is a
> property of my COM object that is itself an ever-existing instance of a
> class containing other objects. I think it is instanciated automatically
> by the COM server when I create the object.
>
> Everytime I put its name in my code ( $a =$obj->Factory; nothing more ),

try:

$a = $obj->Factory();

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация