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

RE: [TRNSYS-users] SET_STORAGE_VARS(STORED,NITEMS,INFO)



Hi Jörg,

 

For all I know, the C++ interface is still evolving, and you may have to define some kernel functions yourself in order to use them.

 

In the latest version, I would add

extern "C" __declspec(dllimport) int        _cdecl SETSTORAGEVARS(void);

to Trnsys.h

(in .\Compilers\Cpp-Mvs2003\Include)

 

and then call it as        SETSTORAGEVARS(...);

 

(The '...' is your homework ... ;-) ).

 

I use right-mouse / Properties on trndll.dll to figure out the exported name, and checked under 'Exported tab' - the best procedure until more people use TRNSYS with C++ and the API gets more standardized...

 

Hope this helps,

 

Werner


De : trnsys-users-bounces@engr.wisc.edu [mailto:trnsys-users-bounces@engr.wisc.edu] De la part de Jörn von Grabe
Envoyé : vendredi 28 octobre 2005 16:31
À : TRNSYS Newsgroup
Objet : [TRNSYS-users] SET_STORAGE_VARS(STORED,NITEMS,INFO)