[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: RE : [TRNSYS-users] Drop-in dll, cannot call external functions



Thanks a lot! That's a great help for future programming.

Timo


-----Ursprüngliche Nachricht-----
Von: keilholz, werner [mailto:werner.keilholz@cstb.fr] 
Gesendet: Mittwoch, 23. März 2005 11:04
An: 'Timo Sengewald'; 'TRNSYS-group'
Cc: keilholz, werner
Betreff: RE : [TRNSYS-users] Drop-in dll, cannot call external functions


Heaven forbid (reading the entire manual, never heard of such a thing
!).

Another 'trick' to get your types into a working DLL workspace quickly
is to open one of your Proformas and use File/Export as ... FORTRAN.

In TRNSYS 16, that not only creates a source template, but the complete
workspace. Just replace the template by your source and hit F7 in
FORTRAN (builds the DLL and puts it where TRNSYS looks for it), then F8
in the Studio runs your project !

Thanks for using 16 !

Werner
-- 
 
 /    \____ Werner Keilholz
 \____/     CSTB Sophia Antipolis
 /    \____ BP 209, 06904 SOPHIA ANTIPOLIS,  F R A N C E
 \____/     phone: +33 (0)4 93 95 67 00 -- fax: +33 (0)4 93 95 67 33
 /    \____ Mailto:werner@cstb.fr -- ASPAM=antispamwpk42
 \____/     http://evl.cstb.fr/english/team/WK/werner.htm
 
 *** 7èmes Journées TRNSYS francophones : 25-27 Mai 2005 ***
http://software.cstb.fr/events/trnsys7/journees_trnsys7.htm



-----Message d'origine-----
De : trnsys-users-bounces@engr.wisc.edu
[mailto:trnsys-users-bounces@engr.wisc.edu] De la part de Timo Sengewald
Envoyé : mercredi 23 mars 2005 09:07 À : 'Timo Sengewald';
'TRNSYS-group' Objet : AW: [TRNSYS-users] Drop-in dll, cannot call
external functions

I am sorry I bothered you! Sometimes manuals are meant to be read
completely. I had to add TRNDll.lib to my project. Everything works fine
now.



-----Ursprüngliche Nachricht-----
Von: trnsys-users-bounces@engr.wisc.edu
[mailto:trnsys-users-bounces@engr.wisc.edu] Im Auftrag von Timo
Sengewald
Gesendet: Mittwoch, 23. März 2005 08:51
An: TRNSYS-group
Betreff: [TRNSYS-users] Drop-in dll, cannot call external functions


Hello!

Since the release of TRNSYS 16 I linked my own types into the TRNDll.dll
in legacy mode. Know I wanted to update the sources to TRNSYS 16 (using
the acces functions, using double precision...) and wanted to link them
into an user-dll. But during the linking process I get the error message



Linking...
   Creating library Release/BLSLib.lib and object Release/BLSLib.exp
type112.obj : error LNK2001: unresolved external symbol
_TRNSYSFUNCTIONS_mp_GETSIMULATIONSTARTTIME
type112.obj : error LNK2001: unresolved external symbol _TYPECK
Release/BLSLib.dll : fatal error LNK1120: 2 unresolved externals Error
executing link.exe.

BLSLib.dll - 3 error(s), 0 warning(s)


Has anybody an idea? Linked to TRNDLL.dll the types (in TRNSYS 16 mode)
work fine. I already checked the manual for the project settings.
Everything should be ok. I have to admit that I'm not a FORTRAN pro so
the solution to that problem might be very simple...


Best regards


Timo



________________________________________________
Timo Sengewald

BLS Energieplan GmbH
Elsenstraße 106
D-12435 Berlin
Tel.: +49 30 53 32 81-0
Fax: +49 30 53 32 81-40


www.bls-energieplan.de


_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@engr.wisc.edu
https://www.cae.wisc.edu/mailman/listinfo/trnsys-users


_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@engr.wisc.edu
https://www.cae.wisc.edu/mailman/listinfo/trnsys-users