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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация