Quote:
Originally Posted by Anomaly
I'm trying to get the ID of IMeterControl:
Code:
mtrAId = pGraphics->AttachControl(new IMeterControl(this, ... ));
However it does not seem to accept an integer as return type. It wants mtrAId to be a pointer. Is this behavior changed with IPlug Youlean? The wdl-ol version returns a regular integer.
|
Yes, it gives you pointer because in that way you can rearrange layers and still having correct control position number. This was implemented mainly because of GUI live edit but it can get handy if you want to rearrange control layers in your plugin...