How to make Visual Studio .dll file run on 64-bit machine?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a 64-bit Windows 7 OS on my machine. However, Visual Studio is built for 32-bit. This means I cannot load Navisworks COM API example plugins. I get error after I register the plugin in HKEY registry: "The third party COM plugin PluginSampleExample could not be loaded."
So I read the documentation and found this:
"Note: Microsoft Visual Studio 2010 is itself a 32bit product, even on 64bit OS. This causes problems trying to develop applications as it cannot load the 64bit Navisworks Integrated ActiveX controls.
To get round this we have installed a dummy 32bit control in C:\Program files (x86)\Autodesk\Navisworks Manage 2015". You must manually register this using "regsvr32.exe lcodied.dll". This control is only for development purposes and won't be required once you have built your application. The supplied ActiveX samples will not compile unless the registration has been performed."
Okay, so I create a dummy file at that location and try running "regsvr32.exe" and then I get this error:
"The module "./lcodided.dll" may not be compatible with the version of Windows that you're running. Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe."
What am I doing wrong here?
Thank you,
-J