<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0mm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML \66F8\5F0F\4ED8\304D \(\6587\5B57\)";
        margin:0mm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTML
        {mso-style-name:"HTML \66F8\5F0F\4ED8\304D \(\6587\5B57\)";
        mso-style-priority:99;
        mso-style-link:"HTML \66F8\5F0F\4ED8\304D";
        font-family:"Courier New";
        color:black;}
span.19
        {mso-style-type:personal-reply;
        font-family:"Arial","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:99.25pt 30.0mm 30.0mm 30.0mm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026">
<v:textbox inset="5.85pt,.7pt,5.85pt,.7pt" />
</o:shapedefaults></xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=JA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'>Dear Matt and David,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'>Thank you for your nice advices. As David had mentioned, the simplest way of copying Type344.dll (provided release mode) into \DebugDLLs directory worked pretty well!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'>Mika<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0mm 0mm 0mm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> David BRADLEY [mailto:d.bradley@tess-inc.com] <br><b>Sent:</b> Wednesday, March 09, 2011 4:50 AM<br><b>To:</b> Yoshinaga Mika<br><b>Cc:</b> trnsys-users@cae.wisc.edu<br><b>Subject:</b> Re: [TRNSYS-users] TRNSYS17 rebuilding and external dll problem<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Dear Mika,<br>  A DLL can be compiled in either "debug" or "release" modes. I think what happened is that your original TRNDll.dll and the Type344.dll that you got from Transsolar are both "release mode" dlls. A release mode TRNDll looks for external DLLs in the ..\Trnsys17\UserLib\</span><span lang=EN-US style='color:red'>ReleaseDLLs</span><span lang=EN-US>\ directory. When you recompiled TRNDll.dll, however, it recompiled in "debug mode" (this is a compiler configuration setting) so the new TRNDll.dll is now looking for Type344.dll in the ..\Trnsys17\UserLib\</span><span lang=EN-US style='color:red'>DebugDLLs</span><span lang=EN-US>\ directory and there likely isn't a Type344.dll in there. If Type344 does not use any data files then it is pretty safe to just move a copy of Type344.dll into the ..\DebugDLLs\ directory. If it does use data files then you will need to obtain a Type344.dll that is compiled in debug mode instead of release mode.<br>Kind regards,<br> David<br><br><br>On 3/8/2011 01:14, Yoshinaga Mika wrote: <o:p></o:p></span></p><pre><span lang=EN-US>Dear all,<o:p></o:p></span></pre><pre><span lang=EN-US><o:p> </o:p></span></pre><pre><span lang=EN-US>I'm facing a difficult problem. A non-standard-type.dll (Type344 from TRNSSOLAR) can't be worked on Simulation Studio after rebuilding TRNDll.dll by CVF6.6b. <o:p></o:p></span></pre><pre><span lang=EN-US>Before rebuilding, Type344 had run successfully. Then I just have opened \TRNSYS17\Compilers\Cvf66\Cvf66.dsw by CVF6.6b and Selected "Build->Rebuild All" and rebuild have done without any error.<o:p></o:p></span></pre><pre><span lang=EN-US>After rebuilding, all projects using standard types and non-standard TESS Types could simulate well but a project file including Type344 was ended with the following error message.<o:p></o:p></span></pre><pre><span lang=EN-US><o:p> </o:p></span></pre><pre><span lang=EN-US>-TRNSYS Message 105 : 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 called in its place. Please link the TYPE or remove it from the input file<o:p></o:p></span></pre><pre><span lang=EN-US>-Reported information  :  Type344 could not be located in either the trndll.dll or in an external dll. Please relink theTRNDll.dll including this Type or make sure that an external DLL in the \UserLib\DebugDLLs and \UserLib\ReleaseDLLs folders contain the Type.<o:p></o:p></span></pre><pre><span lang=EN-US><o:p> </o:p></span></pre><pre><span lang=EN-US>Type344.dll is surely placed in \Trnsys17\UserLib\ReleaseDLLs!! TRNSYS17 has been upgraded to the latest version just to be safe. <o:p></o:p></span></pre><pre><span lang=EN-US><o:p> </o:p></span></pre><pre><span lang=EN-US>I was wondering if you could give me a few tips to clear it up. Thank you in advance.<o:p></o:p></span></pre><pre><span lang=EN-US><o:p> </o:p></span></pre><pre><span lang=EN-US>Best regards,<o:p></o:p></span></pre><pre><span lang=EN-US>Mika<o:p></o:p></span></pre><pre><span lang=EN-US><o:p> </o:p></span></pre><pre><span lang=EN-US>Mika Yoshinaga<o:p></o:p></span></pre><pre><span lang=EN-US>Meijo university, Japan<o:p></o:p></span></pre><pre><span lang=EN-US><o:p> </o:p></span></pre><pre><span lang=EN-US><o:p> </o:p></span></pre><pre><span lang=EN-US><o:p> </o:p></span></pre><pre><span lang=EN-US><o:p> </o:p></span></pre><pre><span lang=EN-US>_______________________________________________<o:p></o:p></span></pre><pre><span lang=EN-US>TRNSYS-users mailing list<o:p></o:p></span></pre><pre><span lang=EN-US><a href="mailto:TRNSYS-users@cae.wisc.edu">TRNSYS-users@cae.wisc.edu</a><o:p></o:p></span></pre><pre><span lang=EN-US><a href="https://mailman.cae.wisc.edu/listinfo/trnsys-users">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a><o:p></o:p></span></pre><pre><span lang=EN-US><o:p> </o:p></span></pre><p class=MsoNormal><span lang=EN-US><br><br><o:p></o:p></span></p><pre><span lang=EN-US>-- <o:p></o:p></span></pre><pre><span lang=EN-US>***************************<o:p></o:p></span></pre><pre><span lang=EN-US>David BRADLEY<o:p></o:p></span></pre><pre><span lang=EN-US>Principal<o:p></o:p></span></pre><pre><span lang=EN-US>Thermal Energy Systems Specialists, LLC<o:p></o:p></span></pre><pre><span lang=EN-US>22 North Carroll Street - suite 370<o:p></o:p></span></pre><pre><span lang=EN-US>Madison, WI  53703 USA<o:p></o:p></span></pre><pre><span lang=EN-US><o:p> </o:p></span></pre><pre><span lang=EN-US>P:+1.608.274.2577<o:p></o:p></span></pre><pre><span lang=EN-US>F:+1.608.278.1475<o:p></o:p></span></pre><pre><span lang=EN-US><a href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a><o:p></o:p></span></pre><pre><span lang=EN-US><o:p> </o:p></span></pre><pre><span lang=EN-US><a href="http://www.tess-inc.com">http://www.tess-inc.com</a><o:p></o:p></span></pre><pre><span lang=EN-US><a href="http://www.trnsys.com">http://www.trnsys.com</a><o:p></o:p></span></pre></div></body></html>