(125 pts) Associate a file extension - VB5
Posted on 1998-10-30
I'd like to programmatically associate a file extension to my program from within my program. Is there an API or something to do it?
I'd like my program to, on the Form_Load event, check if the association is there, then if it's not, make a file association to my program. For example, how can I programmatically make it so when someone Double-Clicks on an odd file extension (like say a .PTY file) it will start my proram.
75+ Points if you can tell me how to programmatically associate a file extension.
50+ Points if you can tell me how to test if the association is there. (this one's not as important as I can make an .INI entry saying that the association's already there, but would be nice to know how to check)