I would like to do an object whit N out.
To do this I define the number of output in the .h like this
Code: Select all
#define NUM_OF_OUT 24Code: Select all
TEVT* pOut[NUM_OF_OUT];Code: Select all
void GetParamInfo (void* pModule,int n, TParamInfo* pParamInfo) {
if(n < NUM_OF_OUT){
pParamInfo->ParamType = ptArray;
pParamInfo->Caption = "Out";
pParamInfo->IsInput = false;
pParamInfo->IsOutput = true;
}Code: Select all
void SetEventAddress (void* pModule, int n, TEVT* pEvent) {
TMyModule* pMyModule = ((TMyModule*)pModule);
if(n < NUM_OF_OUT){
pMyModule->pOut[n] = pEvent;
}Now I would like to change the Caption of each out like this: Out1, Out2, ..., Out24.
How can I do it?
pParamInfo->Caption is a PCHAR type, how can I manipulate a string like this?
Thanks for help
