# VST Wrapper example?

**URL:** <https://forum.juce.com/t/vst-wrapper-example/27271>\
**Category:** General JUCE discussion\
**Created:** [April 16, 2018, 11:26pm UTC](https://forum.juce.com/t/vst-wrapper-example/27271 "2018-04-16T23:26:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dewdman42](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dewdman42/32/10139_2.png) [@dewdman42](https://forum.juce.com/u/dewdman42)\
**Post date:** [April 16, 2018, 11:26pm UTC](https://forum.juce.com/t/vst-wrapper-example/27271/1 "2018-04-16T23:26:55Z")

</div>

Anyone know where I can find an example of hosting a VST within a VST/AU plugin?

---

<div class="post-metadata">

**Author:** ![tlongabaugh](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/tlongabaugh/32/18640_2.png) [@tlongabaugh](https://forum.juce.com/u/tlongabaugh)\
**Post date:** [April 17, 2018, 3:17pm UTC](https://forum.juce.com/t/vst-wrapper-example/27271/2 "2018-04-17T15:17:35Z")

</div>

Fabian posted an example a while back:

> [@Host a VST in an audio plugin](https://forum.juce.com/t/host-a-vst-in-an-audio-plugin/23791/2):
>
> Try this, it hosts an external AU in a VST plug-in but any other combination will also work: #include "../JuceLibraryCode/JuceHeader.h" class WrapperProcessor : public AudioProcessor { public: WrapperProcessor (AudioPluginInstance\* processorToUse) : AudioProcessor (getBusesPropertiesFromProcessor (processorToUse)), plugin (processorToUse) {} //============================================================================== const String getName() const …

---

<div class="post-metadata">

**Author:** ![dewdman42](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dewdman42/32/10139_2.png) [@dewdman42](https://forum.juce.com/u/dewdman42)\
**Post date:** [April 17, 2018, 4:10pm UTC](https://forum.juce.com/t/vst-wrapper-example/27271/3 "2018-04-17T16:10:41Z")

</div>

Bear in mind that I am an absolute noob about JUCE at this point. I created a new audio plugin project in Projucer, deleted the source files and added this one. Changed the project output to include midi effect plugin, since that is what I want to try to do. It built in Xcode no problem, some deprecated code warnings. However, it crashes Mainstage when I try to launch Mainstage…
