Posted: 19 Aug 2018, 12:04
Hi guys,
I am writing a module on which there is a ptIpAddress input. When I enter a new IP address on the patch, the callback is called correctly, but I am unable to retrieve the IP address, I always get 0.
Moreover, sdkGetEvtSize returns 1, which sounds strange (I was expecting 4, since there are four bytes)
sdkGetEvtData() returns 0 whatever I enter in Usine
Same result with sdkGetEvtArrayData (IPAddrEvent, 0);
The input is declared like this, so I think it's correct :
pParamInfo->ParamType = ptIpAddress;
pParamInfo->Caption = "IP";
pParamInfo->IsStoredInPreset = TRUE;
pParamInfo->IsInput = TRUE;
pParamInfo->IsOutput = FALSE;
pParamInfo->CallBackType = ctImmediate;
pParamInfo->EventPtr = &IPAddrEvent;
Anybody having an idea about the way to retrieve the IP address entered ?
Thanks
Benoit
I am writing a module on which there is a ptIpAddress input. When I enter a new IP address on the patch, the callback is called correctly, but I am unable to retrieve the IP address, I always get 0.
Moreover, sdkGetEvtSize returns 1, which sounds strange (I was expecting 4, since there are four bytes)
sdkGetEvtData() returns 0 whatever I enter in Usine
Same result with sdkGetEvtArrayData (IPAddrEvent, 0);
The input is declared like this, so I think it's correct :
pParamInfo->ParamType = ptIpAddress;
pParamInfo->Caption = "IP";
pParamInfo->IsStoredInPreset = TRUE;
pParamInfo->IsInput = TRUE;
pParamInfo->IsOutput = FALSE;
pParamInfo->CallBackType = ctImmediate;
pParamInfo->EventPtr = &IPAddrEvent;
Anybody having an idea about the way to retrieve the IP address entered ?
Thanks
Benoit