Why 32b version not detected in visual studio 2022 and 64b version fails

Good eveningm can i use MapWinGIS v5.3 in visual studio 2022, the 32b version is not detected by visual studio. But the 64b version is detected but i canot drag and drop de control into the form.
This is the error ‘’ System.BadImageFormatException: ’ n’est pas une application Win32 valide. (Exception de HRESULT : 0x800700C1)’ "

Hi,

I got the exact same problem, and from what i’ve seen online, it seems that most of the people that try to use MapWinGIS on VS 2022 encounter this issue.

To solve it here’s what you have to do :

  1. install the x32 version FIRST
  2. after that, install the x64 version in the EXACT same folder as the x32
    3)add MapWinGIS to your project references
    4)Now add the control in the COM components (in the tool box, right clic > manage elements > COM components)

If I’m not mistaken, It should work just fine after that