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;
}
|