Maintaining Constants

Maintaining Constants

I like to use the Constant.txt file Microsoft has been kind enoughto provide. For a new project, copy Constant.txt to a new filesuch as MyConst.txt. Place MyConst.txt in the same directory asthe MAK file and then include MyConst.txt in the project. In debugmode open MyConst.txt and do a FIND on the string Global and replacewith ‘Global. MyConst.txt is changed to a large comment file.

When a new constant is required, check MyConst.txt to see if Microsofthas defined it. If it is there, then create it by removing thequote. This keeps all of the Microsoft constants in context andmakes the program easier to maintain.

See also  How College Students Can Shape the Future of Tech Responsibility

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist