Hi list
I been fighting this recently and I don't know what's going on.
When running the code below in a new app it crashes it on runtime.
I'm doing something incredibly stupid or there's a problem with the
RegistryItem class??
Any comments much appreciated as always.
Regards
------------------------------------------------------------------------
Sub Open()
dim item as new RegistryItem( "HKEY_CLASSES_ROOT" )
try
// Try to get a folder with the extension
item = item.Child( ".pta" )
catch
// The extension isn't listed in the folder, so we
// need to make it
item = item.AddFolder( ".pta" )
end
End Sub
(Note: the full code is supposed to register my app's document file
extension in Windows, but just this snippet is sufficient to show the crash)
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>