I just learned how to use MFC to write embedded software. Various problems are coming soon. Create a new dialog in the resource tab and drag it into a button. However, the time needed to add the space is not successful. A prompt box is displayed, "You cannot perform the Add/remove operation because the code element ** is read-only ". View the corresponding. CPP and. h file, found that there is no read-only attribute, no way, turn to the network, found this problem is quite common, refer to this article, save the existing project, delete it in the directory. solve the problem by re-opening the solution after the NCB file.
Another problem is that the list is empty after you click "control event" in the property bar. No, you should check the previous dialog box and find that the base class is wrong, because it is inherited from the cdhtmldialog class, the corresponding. CPP and. after re-establishing the corresponding class for the hfile, the above situation is triggered, which should lead to confusion in the NCB file. Adding the button response function is to modify the data of the classview and wizardbar modules in the NCB file, if the data is disordered, the function cannot be automatically added.
Embedded programming is just getting started.
Unable to Add/Remove because the code element is read-only