I try to update a simple text out when parameters change:
In header I add :
Code:
public:
ITextControl* outContr;
In ::PlugExample I add:
Code:
outContr=new ITextControl(this, &IRECT(10, 100, 10 + 128, 100 + 32), &IText(14, &COLOR_WHITE, "Courier"), "");
pGraphics->AttachControl(outContr);
In OnParamChange:
Code:
char *out;
IMutexLock lock(this);
sprintf(out, "param: %d", paramIdx);
outContr->SetTextFromPlug(out);
What is wrong in this code, VC build give no error.