[TRNSYS-users] Linking to the TRNSYS DLL

Diego A. Arias daarias at wisc.edu
Mon Mar 26 08:52:02 PDT 2007


Dear Steve,

I have created applications that modify the input file, and then call 
the TRNExe.exe. This alternative allows you to keep all the capabilities 
of TRNSYS.
Please let me know if this alternative works for you, as I can elaborate 
more on how to do that.
Best regards,

Diego

Steven Long wrote:
>
> I’m trying to import a TRNSYS DLL into a non TRNSYS executable. I’m 
> using the following interface in my calling exe:
>
> *interface*
>
> *subroutine* TRNSYS(ICALL,PAROUT,PLOTOUT,LABELS,TITLES,DECKNAME)
>
> *!DEC$ATTRIBUTES DLLIMPORT :: TRNSYS*
>
> *!MS$ATTRIBUTES ALIAS:'TRNSYS' :: TRNSYS*
>
> *!MS$ATTRIBUTES STDCALL :: TRNSYS*
>
> *!MS$ATTRIBUTES REFERENCE :: ICALL*
>
> ! CHARACTER*160 DECKNAME
>
> ! CHARACTER*1 LABELS(2000),TITLES(750)
>
> ! DOUBLE PRECISION PAROUT(1000),PLOTOUT(1000)
>
> *end subroutine* TRNSYS
>
> *end interface*
>
> * *
>
> *I’ve tried several iterations of this, but keep getting the 
> “unresolved external references link error” I’ve confirmed that the 
> compiled TRNSYS dll is in the link path. I’m using the Intel V9.XX 
> compiler.*
>
> * *
>
> *Could you clarify what changes I need to make.*
>
> * *
>
> *Thanks,*
>
> Steven Long, P.E.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at engr.wisc.edu
> https://www.cae.wisc.edu/mailman/listinfo/trnsys-users
>   

-- 
Diego A. Arias
TRNSYS Coordinator
Solar Energy Laboratory
University of Wisconsin - Madison
1500 Engineering Drive
Madison, WI 53706



More information about the TRNSYS-users mailing list