read/write registry and screen class

hi,

just considering using php-gtk for a windows app, but it is a requirement that we use a couple of screens and read/write to the registry. i found the screen class in the gnome toolkit - is this accessible from php-gtk and will it give the info i need to run different windows on different screens?

i haven't been able to find any examples or reading/writing to the registry - is this possible?

thanks,

b

you can use COM with WScript.Shell or the REG command in Windows

<?php
$a
= new COM('WScript.Shell');
var_dump($a);
var_dump($a->RegRead("HKCR\.txt\\"));
//$a->RegWrite($key, $val, $type);
?>
OR
<?php
var_dump
(exec("REG query HKCR\.txt"));
?>
You can find more info on Google. Regards

php gtk windows extension exists

U can use the win32std extension for php.
contents:
Win32 dialogs, Windows utility functions, Registry access and Windows resources
lookup: http://wildphp.free.fr/

win32std is not php-gtk

This is another way to build rich UIs with PHP on Windows, but it AIUI it basically exposes the native Win32 APIs (or at least a subset of these) in a PHP extension; this is completely different from PHP-GTK, which exposes a GLib / GTK API on top of, not Win32 itself.

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.