BadImageFormatException: PInvoke ImportDll with hdf5dll.dll
问题 Ok, I have the HDF5 library downloaded from the official site, and I have a few DLLs, including hdf5dll.dll, and hdf5_hldll.dll. I have what I think to be some wrappers around the native calls, in my classes H5 , H5LT , H5F , and H5T . Example from H5.cs: namespace HDF5 { using hid_t = System.Int32; using herr_t = System.Int32; using hsize_t = System.UInt64; using size_t = System.UInt32; // hbool_t is 0:false, +:true using hbool_t = System.UInt32; // htri_t is 0:false, +:true, -:failure using