The application was unable to start correctly (0xc000007b)

前端 未结 17 1367
無奈伤痛
無奈伤痛 2020-11-22 13:12

I have a client/server app which I have been developing on a single PC. Now it needs two serial ports, so I borrowed a PC from a friend.

When I build my app and try

17条回答
  •  遇见更好的自我
    2020-11-22 13:40

    You can have this if you are trying to manifest your application that it has a dependancy on the Microsoft.Windows.Common-Controls assembly. You do this when you want to load Version 6 of the common controls library - so that visual styles are applied to common controls.

    You probably followed Microsoft's original documentation way back from Windows XP days, and added the following to your application's manifest:

    
    
        
            
        
    
    

    Windows XP is no longer the OS, and you're no longer a 32-bit application. In the intervening 17 years Microsoft updated their documentation; now it's time for you to update your manifest:

    
    
        
            
        
    
    

    Raymond Chen has a lovely history of the Common Controls:

    • The history of the Windows XP common controls (archive)

提交回复
热议问题