I called a 32-bit C++ DLL from a 32-bit C# application, resulting in the error: "HRESULT: 0x8007000B". I used tools, such as sigcheck and "dumpbin /headers" to confirm the application and DLL are both 32-bit ones. I googled all relative articles and they are saying this is due to a 64-bit application calling 32-bit DLL. I confirm the two are 32-bit ones.
So, what can I do to check and figure it out.
My IDE is VS 2019 on Windows 10.
I referred source codes and take as base from :https://www.codeproject.com/Articles/843839/Calling-All-Stations My calling portions at C# program and DLL codes are cut and paste from the above sample. I also built and tested the sample successfully. So, I got confused why it doesn't work at my programs because I follow the same structure at my project.


Sachin SinghRank #66 · 26.2K reputationPosted Feb 3, 2021, 12:37 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Feb 2, 2021, 11:49 PM EST
Stan Huang28 reputationPosted Feb 3, 2021, 12:13 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Feb 3, 2021, 12:41 AM EST
Stan Huang28 reputationPosted Feb 3, 2021, 12:59 AM EST
Stan Huang28 reputationPosted Feb 3, 2021, 5:54 AM EST
Stan Huang28 reputationPosted Feb 4, 2021, 2:34 AM EST