On Sunday, May 19, 2002, at 11:01 , Postman Pat wrote:
[..]
> I obviously did something from here coz this does not work.
> --- Start code ---
>   print ("Inserting registry settings [@ARGV[$i]]\n");
>   my $Register = "thiskey/test";
>   my $hkey;
>
>   $HKEY_CURRENT_USER->Open ($Register,$hkey) || die ("Cannot open
> registry\n");
>   undef my $garbage;
>   $hkey->SetValueEx("TestValue",$garbage,REG_SZ,"Friggin test");
>   $hkey->Close;
> --- End code ---
> It dies & returns cannot open the registry.


where did you define

         $HKEY_CURRENT_USER

I did not see this asserted anywhere.

secondly you may find help with

        use strict;

and calling perl with '-w'.

also, trivial detail I tend to like no space between
the method and the (...)

        $HKEY_CURRENT_USER->Open($Register,$hkey)

also - you declare '$hkey' but never set it to anything
a la some sort of

        $hkey = foo::bar->new(@argFoo);

hence it would not be able to invoke any methods....

but I shall of course defer to anyone who grok's
the Win32::* space....

Yo, Timothy - this be one of your HomeBoys, so Give It up.

ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to