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

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

Anonymous
Not applicable
1,494 Views
2 Replies
Message 1 of 3

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

Anonymous
Not applicable

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

0 Likes
1,495 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Here is documentation for regsvr32.exe: http://support.microsoft.com/en-us/kb/249873
0 Likes
Message 3 of 3

xiaodong_liang
Autodesk Support
Autodesk Support
Hi,

Are you talking about release 2014? We did had an issue that dummy control is missed in release 2014 X64. The workaround at that moment is:

1. install API SDK on 64bit machine
2. Install "NavisWorks ActiveX Redistributable x86 Setup.exe" from api\COM\bin
3. Copy lcodieD.dll to C:\Program File (x86)\Common Files\Autodesk Shared\Navisworks\2014\ActiveX Redistributable\
4. Register lcodieD.dll

note: lcodieD.dll in step 3 actually refers to the lcodieD.dll of 32bits! You have to either copy from the 32bits installer, or from a 32bits machine with NW installed.

a little tedious, but can work.
0 Likes