[TRNSYS-users] Passing strings to a C++ type

Adam Rhoads rhoads at optimizedthermalsystems.com
Sun Jun 2 21:56:53 PDT 2013


Hello,

How can I pass strings from C++ code to a custom type in TRNSYS?

I am trying to pass string values to a new TRNSYS type created using the Export to C++ template. I have tried using the "Special Cards" part to allow for string input to the code. However, when I use the getLabel() function to get / set the string, and run the code in TRNSYS, I get the following error:

"Access violation at address 0290F88A in module 'DFORRT.DLL'. Write of address 00000002."

Please let me know if you need any more information.

Best regards,

Adam Rhoads
Engineer
Optimized Thermal Systems Inc.
Office: +1 866-485-8233 Ext. 26

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20130603/29049e3f/attachment-0004.htm>


More information about the TRNSYS-users mailing list