Thread: IPlug - Youlean
View Single Post
Old 05-07-2017, 09:10 AM   #102
Youlean
Human being with feelings
 
Youlean's Avatar
 
Join Date: May 2015
Location: Serbia
Posts: 654
Default

Quote:
Originally Posted by Anomaly View Post
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...
Youlean is offline   Reply With Quote