File association

Usage of the framework, compiler and tools

Re: File association

Postby Josef Templ » Tue Mar 20, 2018 8:21 am

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
Josef Templ
 
Posts: 231
Joined: Tue Sep 17, 2013 6:50 am

Re: File association

Postby DGDanforth » Wed Apr 25, 2018 11:50 pm

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.
User avatar
DGDanforth
 
Posts: 59
Joined: Tue Sep 17, 2013 1:16 am
Location: Palo Alto, CA, U.S.A.

Re: File association

Postby Josef Templ » Thu Apr 26, 2018 1:36 pm

You can also drag-and-drop a file from the Windows explorer to an open BlackBox application.

- Josef
Josef Templ
 
Posts: 231
Joined: Tue Sep 17, 2013 6:50 am

Previous

Return to Common questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron