Hey everyone,<div><br></div><div>I have TRNSYS 16 and I am programming a new module using C++.  I've had absolutely <u><b>all</b></u> the problems that have been mentioned in the past with regards to stored variables (such as un-updated TRNSYS.h file) and I've solved most of them, but I have been unable to solve one related to pointers.  </div>


<div><br clear="all">For some reason, in TRNSYS.h the functions <b>setStorageVars</b> and <b>setStorageSize</b> need pointer inputs (int*, double*) to work, as opposed to the simple int or double variables used in FORTRAN.  I have spent a lot of time and I have not being able to work this through, and I need to fix this within the next few days or it will have consequences on the project deadline =(</div>


<div><br></div><div>Does anybody have the answer to one of these two questions?</div><div><br></div><div><b><font color="#000066">1) Do you have any example (*.ccp) of a module programmed in C++ that uses stored variables?</font></b>  That would probably be easiest way to understand how to insert the correct inputs in the <b>setStorageVars</b> function, or</div>


<div><br></div><div><b><font color="#000066">2) Do you know how to insert the 'nitems' and 'stored' array in a way that the setStorageVars function will understand?</font></b></div>
<div><br></div><div>The template generated for C++ does not address these issues and I am unsure how to fix them.</div><div><br></div><div>Any help would be highly appreciated!  Thanks!</div><div><br></div><div>Carlos Flores</div>
<div>Energy Research Program</div><div>Universidad de Chile</div><div><br></div>