Login Page - Create Account

Support Board


Date/Time: Fri, 18 Apr 2025 06:58:04 +0000



Post From: any available field in s_UseTool Tool structure that can be user defined?

[2025-04-01 14:48:14]
JohnR - User831573 - Posts: 330
First - thanks go out to User719512 for taking the time to respond. I am self taught and only code for my personal stuff. I did follow your suggestion and I working on how to rework my stuff. I plan to try using that ability of C++ as I go forward.

So that leads to my next area of lacking knowledge.
--> If I use Composition and Inheritance -- Is it safe to presume
1 - I would need to handle the loading & saving to a file the fields (members/properties?) I would add to the structure.
2 - I would also need to handle matching as I load again for my use.
3 - IS this the correct name -- when I use my new 'bigger' structure in a statement sc.UseTool(JORBigTool.Tool)
- assuming already defined s_UseTool Tool; as my structure into standard sc statements

Again, thanks, as I had never thought of using this logic as a way to extend / create tools.

To add, I have used structures to get at fields I wanted/needed to use. B u t - I am starting to have little lights bulbs go off in my brain, as I dug further into C++ classes as a result of my initial request.
Man, have I got a lot to learn.

JohnR
Date Time Of Last Edit: 2025-04-01 16:01:18