hi, im writing a program which allows me to store code snippets, i can save and load these fine, the file type for saved/loaded files are *.codelib
ive added a second .ico file in a res file created with BRCC32, no problems, using Res Hacker i can see this is the second icon in the exe.
Ive been looking through the registry to see how some files are associated, its a bit confusing with registry keys all over, so instead i double clicked the .codelib file from windows, and selected my program to open it. thats fine, it loads my program (and i can handle the file opened from windows with ParamCount). the problem is the icon it gives is the same as my program, only on a white background.
the registry key for my app looks like this:
if i change the %1 to %2 (which i assume would be the second icon in my exe) nothing happens.
excuse the longish post, but can anyone help guide me how to associate my *.codelib file with my program, whether that be with code, or the correct registry paths i need to add to. i know how to deal with the registry, thats not a problem, knowing what keys and values i need to add is.
Thank you all!
ive added a second .ico file in a res file created with BRCC32, no problems, using Res Hacker i can see this is the second icon in the exe.
Ive been looking through the registry to see how some files are associated, its a bit confusing with registry keys all over, so instead i double clicked the .codelib file from windows, and selected my program to open it. thats fine, it loads my program (and i can handle the file opened from windows with ParamCount). the problem is the icon it gives is the same as my program, only on a white background.
the registry key for my app looks like this:
Code:
Key Type Value
HKEY_CLASSES_ROOT\.codelib String codelib_auto_file
HKEY_CURRENT_USER\Software\Classes\.codelib String codelib_auto_file
HKEY_CURRENT_USER\Software\Classes\codelib_auto_file\shell\open\command String "D:\Programs\Code Library\CodeLibrary.exe" "%1"
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.CODELIB
if i change the %1 to %2 (which i assume would be the second icon in my exe) nothing happens.
excuse the longish post, but can anyone help guide me how to associate my *.codelib file with my program, whether that be with code, or the correct registry paths i need to add to. i know how to deal with the registry, thats not a problem, knowing what keys and values i need to add is.
Thank you all!