# Developing VST GUI by using SDL2?

**URL:** <https://discourse.libsdl.org/t/developing-vst-gui-by-using-sdl2/24009>\
**Category:** SDL Development\
**Created:** [March 8, 2018, 7:14pm UTC](https://discourse.libsdl.org/t/developing-vst-gui-by-using-sdl2/24009 "2018-03-08T19:14:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cslr](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/c/82dd89/32.png) [@cslr](https://discourse.libsdl.org/u/cslr)\
**Post date:** [March 8, 2018, 7:14pm UTC](https://discourse.libsdl.org/t/developing-vst-gui-by-using-sdl2/24009/1 "2018-03-08T19:14:26Z")

</div>

Hi

I’m trying to develop a VST plugin GUI by using SDL (Linux initially). In VST 2.x plugin interface, the plugin gets already created window handle it should start using it so I’m looking for a CreateWindowWithHandle(window\_handle) function but there is only CreateWindowFrom(void \*ptr) and giving window handle (from DAW call) to this function seem to lead to crash/is not working. (the window\_handle is an Xlib Window (or an xcb\_window\_t).)

This page shows how plugins are called (effEditOpen command is send to plugin):

[https://github.com/ekenberg/vstminihost/blob/master/source/minieditor.cpp](https://github.com/ekenberg/vstminihost/blob/master/source/minieditor.cpp)

Do you have any suggestions what I should do?
