How to use a native .net x86 DLL in an x64 solution?

  .net, 32bit-64bit, c++, dll

we are using third-party DLLs in order to communicate to hardware.

After a few weeks of work everything worked just fine until I noticed that the test solution still was set to AnyCPU.
For our purposes the data volumes are too large for an x86 solution so I switched the setting … Unfortunately, it turned out that the DLLs are not x64 compatible.

After doing some research, I read articles like this, or questions like this.

Unfortunately, I have no idea about C++ and would like to know if there are any reasonable examples of how to do this or another method I could try.

Source: Windows Questions C++