Home > Net >  C # development activeX controls, switch to the x86 platform System. Start reporting BadImageFormatE
C # development activeX controls, switch to the x86 platform System. Start reporting BadImageFormatE

Time:01-24

Using visual studio 2015 tool to develop a c # ActiveX controls, if choose x86 in the project properties - the target platform, at the same time a new x86 in configuration manager, then start times System. BadImageFormatException abnormalities, specific screenshot below

If the project properties - target platform switch to any CPU, you can run normally,
To ask you, why is set after the x86 complains?

CodePudding user response:

The project properties - target platform Settings as shown in figure

Configuration manager Settings as shown in figure

CodePudding user response:

This demo in general development train of thought is to use the COM library collection development form control program, and can be embedded into the ie used similar activeX controls,

CodePudding user response:

, help to look at, for a day,

CodePudding user response:

The elder brothers how to solve?? I also a headache for a day, the program is to do for PLC control, PLC variable names need to read, the referenced DLL must be run on X86,
  •  Tags:  
  • C#
  • Related