Mario Buchichio wrote:

Hi

I want my users to be able to double click a document icon and let it be opened with my app in Windows.
Which way would you guys recommend?
I'm currently trying with the AssociateExtension method of the Windows Functionality Suite. But for some reason it crashes my app when it tries to create the folder (registryItem.addfolder)... RS tech support didn't answer my questions, nobody seems to be interested in the topic in this list, so guess I'll look for an alternate method.
Anyone??
In the remote case that anyone wants to take a look at the method I'm using, here is goes:


You could try something more like this: (I tested this with 5.5.5 on XP Pro)

 dim theAppName as String
 dim theExtension as string
 dim exten as Registryitem
 exten = new RegistryItem( "HKEY_CLASSES_ROOT" )
 theExtension = "aaa"
 theExtension = "." + theExtension
 theAppName = nthField( App.ExecutableFile.Name, ".", 1 )

 ///add extension
 exten = new RegistryItem( "HKEY_CLASSES_ROOT\" + theExtension)
 exten.defaultValue = theAppName

 ///add handler
exten = new RegistryItem( "HKEY_CLASSES_ROOT\" + theAppName + "\Shell\Open\Command" )
 exten.DefaultValue = App.ExecutableFile.ShellPath + " ""%1"""

hth,

Brian
_______________________________________________
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>

Reply via email to