title: Delphi Associating and using file extensions
body: <p>i need my delphi program to open a .xcr file type which will be encrypted text. i want to assign my Delphi program as the default program to open this file when the user clicks on it. I've done some research and from what i can tell i need to use the registry object in Delphi to change the registry but i'm not too sure how to do that. How exactly would i assign this file extension to the program and more importantly how do i use this to run the decryption procedure in the program? Do i link the opening of the file from windows task manager to the procedure somehow? </p>
  
  <p>Sorry for not making much sense but i don't really understand how i'm meant to do this.</p>