Using Win 7 DLLs on different machines

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
filipov1
Posts: 5
Joined: Fri Aug 21, 2009 6:53 pm
Location: University of Illinois

Using Win 7 DLLs on different machines

Post by filipov1 »

I have had problems transferring DLLs generated from my Win 7 PC(64bit) to any other machine (even a nearly identical Win 7 PC(64bit) systems as well). When I place the new DLL in a folder with the OpenSees executable, it seems like OpenSees does not recognize the DLL, although this works perfectly fine on my own computer. I have been compiling the DLLs/elements using Visual Studio 2010 and the only way I have been able to get my code to work on another machine has been to recompile the entire code by installing the entire Visual Studio 2010. I have tried installing Microsoft Visual C++ 2010 SP1 Redistributable and registering/unregistering the DLLs that I want transferred, but no success . Has anyone seen this issue before? I am not sure if there is an easy fix or if this is beyond the DLL capability.

Thanks,
E -
Mercure
Posts: 4
Joined: Tue Sep 06, 2011 6:30 am
Location: Université de Sherbrooke

Re: Using Win 7 DLLs on different machines

Post by Mercure »

I encounter the exact same problem, is there any solution yet other than install visual studio 2010 on every computers?
mhoehler
Posts: 2
Joined: Wed Aug 28, 2013 3:51 am
Location: Hilti AG

Re: Using Win 7 DLLs on different machines

Post by mhoehler »

I am having the same problem. If anyone has a solution to this, can they post it?
mhoehler
Posts: 2
Joined: Wed Aug 28, 2013 3:51 am
Location: Hilti AG

Re: Using Win 7 DLLs on different machines

Post by mhoehler »

SOLUTION (thanks to B. Winkler)
Make sure that the Visual Studio setting under "General>properties" is set to "Active(release)“. The default setting "Active(debug)“ creates a dll which will not work on computers without Visual Studio.

This worked for us in any case.
Post Reply