Thread: IPlug - Youlean
View Single Post
Old 03-14-2017, 06:18 PM   #15
Bobflip
Human being with feelings
 
Join Date: Nov 2016
Posts: 341
Default

Ok, yeah that's definitely kicked things off! Thanks to you and Youlean :-)

I've solved the crashing I was getting while trying to load in my custom images, and it makes perfect sense now I found the solution. Although I had changed LoadIBitmap to LoadPointerToBitmap, I had to change:

Code:
IBitmap knob = pGraphics->LoadPointerToBitmap(KNOB_ID, KNOB_FN, kKnobFrames);
pGraphics->AttachControl(new IKnobMultiControl(this, kGainX, kGainY, kGain, &knob));
to:
Code:
IBitmap* knob = pGraphics->LoadPointerToBitmap(KNOB_ID, KNOB_FN, kKnobFrames);
pGraphics->AttachControl(new IKnobMultiControl(this, kGainX, kGainY, kGain, knob));
Basically just removing the ampersand from in front of 'knob' and adding an asterisk after 'IBitmap'. Hope this information ends up being useful to people out there!
Bobflip is offline   Reply With Quote