Login Page - Create Account

Support Board


Date/Time: Sat, 01 Mar 2025 06:51:11 +0000



Post From: Code Organization Patterns

[2021-09-17 17:12:01]
ForgivingComputers.com - Posts: 1015
On big projects, I create header files that have all the repeatable stuff like declarations, inputs, and subgraphs. Then I use #INCLUDE to place a copy of the header file in each function that needs something from it. I don't think it creates any significant overhead if the compiler sees variables that aren't being used in the function. This also cuts down on errors, as there is only one place where these things are defined.

I also use Ctrl-Shift-F a lot in order to find all occurrences of a search string in the files. I often have Notepad++ open so I can use the same Ctrl-Shift-F to search through all files, *.cpp, *.h or both. Notepad++ also is better at replacing random strings, as VS wants it to be a defined name to do global replace. There may be an easier way, but I haven't found it.