Page 2 of 2

Re: File association

Posted: Tue Mar 20, 2018 8:21 am
by Josef Templ
Robert, you can see part of the answer from the InnoSetup configuration file posted before.
It defines 3 file types, odc, osf, and ocf.
Each file type is associated with a DefaultIcon, which is defined in a subkey as a reference to an icon resource bundled with an exe file.
The exe file is always "{app}\BlackBox.exe", the icon resource number is 1, 2, or 3.

The other part of the answer is in the command that has been used for linking the exe file,
which is defined in Dev/Docu/Build-Tool.odc as:

DevLinker.Link BlackBox2.exe := Kernel$+ Files HostFiles StdLoader
1 BlackBox.res 1 Applogo.ico 2 Doclogo.ico 3 SFLogo.ico 4 CFLogo.ico 5 DtyLogo.ico 6 folderimg.ico 7 openimg.ico
8 leafimg.ico 1 Move.cur 2 Copy.cur 3 Link.cur 4 Pick.cur 5 Stop.cur 6 Hand.cur 7 Table.cur

The bundled icon resources are: 1 Applogo.ico, 2 Doclogo.ico, 3 SFLogo.ico, etc.
The icon resource files are found in Win/Rsrc/ where you can see that they are different indeed.

In order to clean up your registry, it may be a good idea to reinstall BlackBox from an installer exe.

- Josef

Re: File association

Posted: Wed Apr 25, 2018 11:50 pm
by DGDanforth
In my opinion all of this is much too complex.
I avoid clicking on a .odc file to open it and instead
start from my icon to open my blackbox set with /USE
and the search for the desired file from within BlackBox.
Longer but simpler.

Re: File association

Posted: Thu Apr 26, 2018 1:36 pm
by Josef Templ
You can also drag-and-drop a file from the Windows explorer to an open BlackBox application.

- Josef