View Single Post
Old 08-17-2017, 03:48 PM   #3
Opcode 7
Human being with feelings
 
Join Date: Mar 2017
Posts: 79
Default

Edit:

Woop woop! I figured it out through lots of finding references, and reading through all the code --

In summary : In the .rc resource file, at the top I noticed resources are only included if #ifdef SA_API is defined, so by defining that (or removing that condition all together), and changing my code to as follows, I got dialogs to open from within VST Hosts :

Quote:
INT_PTR OpenDialog(char* szAppName, int resourceId, DLGPROC procWindow)
{
IGraphicsWin* pGraphics = (IGraphicsWin*)mPlug->GetGUI();

INT_PTR retVal = DialogBoxA(mPlug->GetGUI()->GetInstance(), MAKEINTRESOURCE(resourceId), (HWND)pGraphics->GetMainWnd(), procWindow);

DBGMSG("%X", GetLastError());

return retVal;
}

Last edited by Opcode 7; 08-18-2017 at 05:33 PM.
Opcode 7 is offline   Reply With Quote