Re: Windows COM
| From: | Benjamin Smith | Date: | Fri, 02 Jun 2006 22:00:41 +0000 |
| Subject: | Re: Windows COM | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6967@lists.php.net to get a copy of this message | ||
On Friday 02 June 2006 10:58, Steph Fox wrote:
> It's possible to use combinations, e.g. you could use PHP-GTK alongside ffi
> or com_dotnet...
Norm,
In order to work with Mac and *nix, I've written my PHP-GTK app to do an O/S
dependency check when it needs to interface with the underlying O/S, and then
call an appropriately named function to do the actual task.
For example, if I want to bring up a website in a browser, I have an internal
call to (to OpenURL()) which determines what O/S we're running, and makes a
call to one of OpenUrlWinNT(), OpenURLWin9x(), OpenUrlUnix(), or (hopefully
soon) OpenUrlOSX().
Then, within each of these is the appropriate system call to get it done. On
Windows, this is a call to IE thru COM.
-Ben
--
"The best way to predict the future is to invent it."
- XEROX PARC slogan, circa 1978