<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>A few things to check:</p>
<p>Did you replace the XXX with the actual number for your new type?  </p>
<p>Does the Subroutine declaration at the top of your subroutine have the same number as the DLLexport command?</p>
<p>Did you build your new DLL in release mode?</p>
<p> </p>
<p>Jeff</p>
<p> </p>
<div>
<pre>---<br />Jeff Thornton
President - TESS LLC
22 N. Carroll Street, Madison WI USA 53703
Office: (608) 274-2577  Fax: (608) 278-1475
www.tess-inc.com
E-Mail: thornton@tess-inc.com
</pre>
</div>
<p>On 01/15/2017 11:56 am, Amaia Zuazua via TRNSYS-users wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr"><br />
<div>
<p class="MsoNormal"><span>Hi all,<span></span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>I did a new component but when I try to use it I get the following error:<span></span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>“A TYPE was called in the TRNSYS input file but was either not linked into trndll.dll or was not found in an external dll. A dummy subroutine was </span><span>called in its place. Please link the TYPE or remove it from the input file</span><span>”.<span></span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>The .dll of the new type is in the ReleaseDLL folder, and I wrote <strong><span style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-origin: initial; background-clip: initial;">!DEC$Attributes DLLexport :: Type</span>XXX </strong>in the code file (I saw those two issues where the most common mistakes regarding this error).<span></span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Any other help?<span></span></p>
<p class="MsoNormal">Thanks!</p>
</div>
</div>
<br />
<pre>_______________________________________________
TRNSYS-users mailing list
<a href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
</blockquote>
</body></html>