Reply to Re: COM Objects

Your name:

Reply:


Posted by Steve on 04/25/07 13:05

"Vince Morgan" <vinhar@REMOVEoptusnet.com.au> wrote in message
news:462f0220$0$22843$afc38c87@news.optusnet.com.au...
| "R�my Sanchez" <thenux@gmail.com> wrote in message
| news:1177446592.987028.210940@n35g2000prd.googlegroups.com...
| Hello,
| I'm trying to use MSCOMM32.OCX, but I got an error "Fatal error:
| Uncaught exception 'com_exception' wih message 'Failed to create COM
| object 'MSComm32.OCX' : Incorrect syntax'
|
| The OCX is present on the system and I could succesfully use it
| through visual basic. Any clue ?
|
| Regards,
| R�my
| The interfaces are not something php would understand.

actually, the interfaces are com...so php can understand them.

| However, it would be
| quite possible to wrap them within a c/c++ dll.

first, he's using mscom32.ocx. that means he's still developing in vb
classic...errr... vb < .net. there are very few in that genre that have ever
delved into c/c++. otherwise, he'd be able to create a com port controller
dll in about .5 hours. :)

| Not too hard to do if you
| use ATL and know a little about com interfaces, and then map and call via
| the dll's interfaces.

i doubt he's heard of atl's or any other kind of template library. i can
hear the 'huh?' from here.

| Visual basic is com so the complexity is hidden from you

since it does abide by the com contract, all he'd have to do for a wrapper
would be to create a form, drop the control on it, then expose it's
interfaces publically, and compile his new dll. php can consume the
interfaces from there.

[Back to original 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

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