3F / Conari

🧬 One-touch unmanaged memory, runtime dynamic use of the unmanaged native C/C++ in .NET world, related P/Invoke features, and …
MIT License
252 stars 28 forks source link

Failed loading '...': Check used architecture or existence of file.[Error: 193] #4

Closed 3F closed 8 years ago

3F commented 8 years ago

Failed loading '...': Check used architecture or existence of file.[Error: 193]

Details

Error 193 (0xC1)

ERROR_BAD_EXE_FORMAT

    193 (0xC1)
    %1 is not a valid Win32 application.

How to fix

Probably you need to check Target Platform of your project.

The Any CPU (?) will give a 64bit pointers for x64 system and 32bit pointers for x32 system (except for anycpu32bitpreferred when your application runs in 32-bit mode on systems that support both 64-bit and 32-bit).

So how about to check library, that you want to load ?

The Conari supports x32 & x64 architecture, leaving the choice to you. Thus, to select compatible for library that's should be loaded for your project:

_err193