One button reads the USB flash drive information. When the program runs directly in the USB flash drive, the program is closed, but the dialog box is displayed normally when the program runs in other disks.

Source: Internet
Author: User

Cause: it is suspected that during initialization, it takes time to read the USB flash disk information. Therefore, the code for reading the USB flash disk information is moved to domodal (), so that it can be properly displayed on the USB flash disk.

Cnewregdlg regdlg(this);regdlg.exe directory = pketang-> exedirectory; regdlg. bhasverified = bhasverified; regdlg. bu_hasverified = bu_hasverified; regdlg. makeu_machincode (regdlg. m_umachincode); // if it is placed in the initialization function of cnewregdlg, it will directly exit the total program. If it is placed here, it will be normal. makemachincode (regdlg. m_machincode); regdlg. domodal ();

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.