VB|XP Style: Finally solved the "picture optimization software" On some XP system can not start the problem.

Source: Internet
Author: User

For a year, there has been a "compatibility" problem with picture optimization software.

Because the previous software was developed on the Windows 2003 system, the installation files, after some user testing found that some users of the XP system installed, unable to start normally, can only hear peng!, the interface can not be displayed.

Today is free, I decided to recheck the code, at the beginning I thought it was due to some API, through the elimination of the code snippet to minimize the program, but still did not solve the problem.

I created a new window, and then in the VB Project properties, the default Startup window to the new window Form1, generated exe file after the test, unexpectedly can start. But when I add a button control in this Form1 window, I can't start, halo!

I went to Baidu Search, no comments in Baidu's bar to see such an introduction:

http://tieba.baidu.com/f?kz=101277016

There is one such paragraph:

Private Sub form_initialize ()
InitCommonControls
End Sub

Because my interface wants to choose XP style, so I used the abc.exe.manifest configuration file.

I was added in Form_Load to set XP-style statements:

Private Sub Form_Load ()
InitCommonControls
End Sub

After testing, it is wrong to write in InitCommonControls in Form_Load.

When I move the initcommoncontrols to the form_initialize, I can start the interface normally.

2010-03-06

VB|XP Style: Finally solved the "picture optimization software" On some XP system can not start the problem.

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.