fel88 / DeepNestPort

DeepNest C# Port
MIT License
79 stars 35 forks source link

Exception from HRESULT: 0x8007000B #2

Closed petrasvestartas closed 6 years ago

petrasvestartas commented 6 years ago

Hi,

I am trying to implement your library is my software, and I get error:

  1. Solution exception:An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

I really need to run the code on 64 bit, as I cannot load native code minkowski.dll that is 32 bit (I assume it is) on 64 bit environment (I assume this is the main error).

Is there any way to compile it under 64 bits?

fel88 commented 6 years ago

Yes, you can compile minkowski.dll under 64 bits. Just switch compiler like this: image

petrasvestartas commented 6 years ago

Thank you for reply and patience. I am trying to do this for an hour in visual studio 2017 command prompt without success.

What I do step by step:

  1. In windows 10 search I type "dev", to get command prompt of visual studio 2017
  2. By default it is in wrong directory so I change it to one that has file vcvarsall.bat
  3. I type vcvarsall.bat x86_amd64 and this results in error: C:\Program was unexpected at this time.

Could you help me with this one?

aa

fel88 commented 6 years ago
  1. I think, 'System32' folder appears because you run cmd as administrator
  2. Try this https://stackoverflow.com/questions/43372235/vcvarsall-bat-for-visual-studio-2017/43570522
  3. Try this https://stackoverflow.com/questions/42794845/visual-studio-community-2017-cl-exe
  4. Or you can try this x64 dll version minkowski.zip
petrasvestartas commented 6 years ago

It loads into Rhinoceros software correctly, thank you. I downloaded your minkowski.zip and replaced the file. All good.

Tomorrow I will try to see how I can compile on my computer the 64 bit version according to your links. Really happy not see an error... Thank you