This is more of a generalized ruby question than watir specific.   So
you might get better answers from the ruby forum.

This thread over there from a few years back might  also be of use
getting you headed the right direction

  http://www.ruby-forum.com/topic/76585

On Jun 10, 8:59 pm, dt_nz <david.tay...@sungard.com> wrote:
> Hi there,
> I get the error above when trying to create a registry subkey of the
> type REG_NONE
>
> hive = Win32::Registry::HKEY_CURRENT_USER
>
> key_write = hive.open('Software\Microsoft\Windows\Shell
> \AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}\\',
> Win32::Registry::KEY_WRITE)
>
> key_write.write('Excel.Sheet.8', 'REG_NONE', '0')
>
> I get the error TypeError: Unsupported type 0
>
> I looked at other existing values for subkey REG_NONE and it seems to
> be stored as (zero-length binary value)
>
> Do I need to convert the value 0 to something else? (eg. 0)
>
> The code works fine when creating other subkeys (eg. REG_SZ etc)
>
> Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to