Newer versions of the VS compiler are more touchy about this.  If you are using VS 8, you may need to run the program vcredist.exe on the target machine.  Check out your VS 8 installation directory under subdirectory SDK/v2.0/BootStrapper/Packages.  Just look around until you find the version you need for your target installation.
<br><br>- Wes<br><br><div><span class="gmail_quote">On 12/5/07, <b class="gmail_sendername">Karthik Krishnan</b> &lt;<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Rex: <br><br>If you are moving the plugins onto another machine, please ensure that you include the C runtime libraries. <br><br>They depend on the compiler that you use. For instance with MSVC 71 (or visual studio 2003), it is :&nbsp; 
msvcr71.dll and msvcp71.dll (or msvcrtd.dll if you built in Debug mode).<br><br>You can find them somewhere in c:\Program Files\Visual Studio.. Your plugins will depend on these libraries, so please make sure they are present on the target machine. You should drop these libraries into the VolView folder. 
<br><br>If this doesn&#39;t work, please use DependencyWalker to check the runtime libraries that your plugins depend on.&nbsp; &quot;<a href="http://www.dependencywalker.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.dependencywalker.com/</a>&quot;<br><br>
Thanks<br>--<br><span class="sg">karthik</span><div><span class="e" id="q_116abf6557ce0804_2"><br><br><div><span class="gmail_quote">On 12/5/07, <b class="gmail_sendername"><a href="mailto:mrcheung@mdanderson.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mrcheung@mdanderson.org
</a></b> &lt;<a href="mailto:mrcheung@mdanderson.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mrcheung@mdanderson.org
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi,<br><br>I found out that if I copy the DLL to the Volview plugin folder on the same
<br>machine that I generated the DLL, volview can see the DLL (despite the<br>post-build errors).<br><br>Now, if I copy the same DLL to the Volview plugin folder on another<br>machine, then the volview cannot see it. I also checked that for the
<br>Volview running on this second machine can see other plugins fine.<br><br>I would appreciate any help. This is problem for me because the plugins<br>would not be portable then.<br><br>Rex<br><br><br><br><br><br><br><br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;Karthik Krishnan&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="mailto:karthik.krishnan@kitware.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">karthik.krishnan@kitware.com
</a>&gt; To:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;
<a href="mailto:mrcheung@mdanderson.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mrcheung@mdanderson.org</a>&quot; &lt;<a href="mailto:mrcheung@mdanderson.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

mrcheung@mdanderson.org</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cc:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="mailto:insight-users@itk.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">insight-users@itk.org</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;12/05/2007 08:46 AM<br><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subject:
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Re: [Insight-users] Re: volview plugin DLL post-build error
<br><br><br><br><br><br><br>On 12/4/07, <a href="mailto:mrcheung@mdanderson.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mrcheung@mdanderson.org</a> &lt;<a href="mailto:mrcheung@mdanderson.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

mrcheung@mdanderson.org</a>&gt; wrote:<br><br>Hi,<br><br>I am testing making volview plugin. I used a plugin already available and
<br>build it. Got this error, although a DLL file was generated. When I<br>manually copy the DLL file generated this way into the Volview Plugin<br>folder, the Volview does not seem to see it. Any help is appreciated.<br>


<br>Rex<br><br>My Cmake setting:<br>Where is the source code: C:\Insight2\InsightApplications<br>Where to build the binaries: C:\Insight2\InsightApplications-VSNET<br>ITK_Dir: C:\Insight2\insight-vc++<br>Volview_Binary_Dir:C:\Insight2\InsightApplications-VSNET\VolviewPlugIns
<br><br><br>Rex:<br><br>The specification of VolView_BINARY_DIR is incorrect. This is supposed to<br>refer to the binary directory where VolView.exe is present. This is why you<br>get an error from the PostBuild copy process. There is no &quot;Plugins&quot;
<br>directory in InsightApplications. The PostBuild Copy is meant to copy the<br>DLL for you to VolV I would suggest that you simply wipe this cache entry<br>out. (You can do that by rightclicking on this cache entry and selecting
<br>Delete).<br><br>In any case, VolView should&#39;ve been able to load the DLL if you dropped it<br>into its Plugins folder. Could you please verify if you dropped it in the<br>right place as shown below.<br><br>VolView.exe


<br>&nbsp;&nbsp;|<br>&nbsp;&nbsp;---- Plugins/<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ----- vvITKSigmod.dll (should be dropped here).<br><br><br>------ Build started: Project: vvITKSigmoid, Configuration: Debug Win32<br>------<br><br>Compiling...
<br>vvITKSigmoid.cxx<br>Linking...<br>&nbsp;&nbsp; Creating library Debug\vvITKSigmoid.lib and object<br>Debug\vvITKSigmoid.exp<br>Performing Post-Build Event...<br>Error copying file &quot;/.\Debug/vvITKSigmoid.dll&quot; to<br>&quot;C:/Insight2/InsightApplications-VSNET/VolviewPlugIns/.
<br>\Debug/Plugins/vvITKSigmoid.dll&quot;.<br>Project : error PRJ0019: A tool returned an error code from &quot;Performing<br>Post-Build Event...&quot;<br><br>Build log was saved at &quot;file://c:<br>\Insight2\InsightApplications-VSNET\VolviewPlugIns\Debug\BuildLog.htm&quot;
<br>vvITKSigmoid - 1 error(s), 0 warning(s)<br><br><br>_______________________________________________<br>Insight-users mailing list<br><a href="mailto:Insight-users@itk.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote></div>
</span></div><br>_______________________________________________<br>Insight-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br><br></blockquote></div><br><br clear="all">
<br>-- <br>Wesley D. Turner, Ph.D.<br>Kitware, Inc.<br>R&amp;D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x120