Last Update 06/14/2024 by vmx17
SimpleDynoCS was basically converted by code converter but I add some changes to modernization. Here I show them.
- The
Mainclass is separated intoProgramandSimpleDynoclass. TheSimpleDynois partial class of main form (so the main form class isSimpleDynonotMainFnorMain). TheProgramclass holdsMainIproperty as staticSimpleDynoinstance. So main class can be specified asProgram.MainIin general. (It corresponds tothisif it is not static.) - Directory for setting files is moved to
C:\Users\your_dir\AppData\Roaming\SimpleDyno"as default location. The path is gotten by using APIs so it may vary with your configuration. It no longer usesProgram FilesnorC:\directory for such purpose. - some names of variables are changed. The name start with "m_" is private member, start with "s_" is static variables. The private member variables are made to public by property definitions (if required). These change has not been finished. I'll change them one by one.
#define SOMEVALUE = 1directives were converted to like;with this change, I cannot specify number in preprocessor symbol. So far such number did not appeared. If you want#define A ... #if A // This code will be compiled if A is defined. #else // This code will be compiled if A is not defined. #endif ...
#elsepart active, just comment out#define ....- any event handlers those assigned to MainForm (the name is "SimpleDyno") events are moved to
InitializeComponent()as VS default way.