<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Michael -</p>
<p>Rather than using the export command in Simulation Studio, you can start your compiler and open the existing TRNSYS compiler solution in the TRNSYS17\Compilers folder.  In those solutions there is a MyType project where you can add your code following the instructions in the ProgrammersGuide volume of the documentation set.</p>
<p>Regards,</p>
<p>Tim</p>
<p> </p>
<div>
<pre>---<br />Timothy P. McDowell
Executive Vice President
Thermal Energy System Specialists, LLC
3 N Pinckney St, Suite 202
Madison, WI 53703
office: 608-274-2577
cell: 608-225-5250</pre>
</div>
<p>On 2019-08-03 03:56, Michael Poto 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 --><!-- meta ignored -->
<div class="WordSection1" style="direction: ltr;">
<p class="MsoNormal"><span>Good morning,<br /> I am trying to create a new type in TRNSYS.</span><span style="font-size: 13.5pt; font-family: 'Arial',sans-serif;"> </span></p>
<p class="MsoNormal"><a name="_olk_signature"></a><span>I'm using:<br /> Trnsys 17 e Visual Studio 17 with Intel Parallel XE 2019. I have already tried to read the "Getting Started" (1.8. Creating a new component) section of the documentation.</span><span><span style="font-size: 13.5pt; font-family: 'Arial',sans-serif;"> </span></span><span><span>The problem is that when I go to "File / Export as / Fortran" Visual Studio opens with this message:<br /></span></span><span><span style="font-size: 13.5pt; font-family: 'Arial',sans-serif;"> </span></span><span><span><br /> "One-way update"<br /> Functional changes will be automatically made to the following projects to be opened.</span></span><span><span style="font-size: 13.5pt; font-family: 'Arial',sans-serif;"> </span></span><span><span>Projects can no longer be opened in the version of Visual Studio in which they were created.<br /> - Type5415, "C: Trnsys17 MyProjects Type5415.dsp"<br /><br /> After giving the "ok" and when I compile these errors come out:<br /> - Error LNK2001 external symbol __DllMainCRTStartup @ 12 not resolved Type5415Lib C: Trnsys17 MyProjects LINK 1<br /> - LNK1120 error 1 unresolved external Type5415Lib C: Rnsys17 UserLib DebugDLLs Type5415.dll<br /> What is wrong?</span></span></p>
<p class="MsoNormal"><span><span><br /> Can I have your help, step by step, to create a new type?<br /> Thank you,<br /> Michael</span></span><span><span></span></span></p>
<p class="MsoNormal"><span> </span></p>
<span></span>
<p class="MsoNormal"><span> </span></p>
</div>
<!-- html ignored --><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>