Note: from Eyeshot v2020, the bitness agnostic code is included in samples custom control project with the name BitnessAgnostic.cs and it is used by the DraftingDemo sample. To enable it, you need to declare the SETUP conditional symbol and set bitness as AnyCPU in the DraftingDemo VStudio project.
The following source code sample demonstrates how to load DWG/DXF files from a .NET application compiled against AnyCPU. It includes the operating system bitness detection, dynamic loading of the Eyeshot x86 or x64 DLL from a separate folder and the instantiation of the ReadAutodesk class using reflection.
Previous versions of this article: Eyeshot 10, Eyeshot 9, Eyeshot 8