[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calliung functions from dll by type 61
- Date: Thu, 21 Aug 2003 12:22:48 +0200
- From: Werner Keilholz <werner@xxxxxxx>
- Subject: Re: Calliung functions from dll by type 61
Hi Selim,
In TRNSYS 15 you can have only one external user- DLL (TRNSYS 16 will
allow any number).
If you need to call more than one, I would recommend to use Parameter 1 of
type 61as a 'mode' indicator.
In your DLL, you can then simply write something like
if (par[0]==1)
function1(...);
else if (par[0]==2) function2(...);
else if (par[0]==3) function3(...);
else if (par[0]==4) function4(...);
else printf("Unknown mode: %d", par[0]);
Werner
Selim Ullah wrote:
> Halloo TRNSYS users
>
> I have c++ dll with four exportable functions. To call these functions
> by type 61 what should I change in the type 61 routine?
>
> Can anybody help with example?
>
> Thanks in advance
>
> Selim