For Windows programming, the values of different objects are different. Be careful

Source: Internet
Author: User

Currently, there are several classes: Class A is the dll library, Class B calls a, and is also encapsulated into a dll library. There is also a DLG dialog box class that calls Class B, then there is a directory in the dialog box, and a button on the directory pops up in another dialog box. At the beginning, I also defined a B * pdlg1 IN THE subdialog box; in the parent dialog box, a B * pdlg is defined, and the value of the member variables of Class A is obtained separately. The subdialog box cannot be obtained, the pointer in the parent dialog box is changed later, and the member variable of a is operated through the parent dialog box in the subdialog box. This is correct!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.