Login Page - Create Account

Support Board


Date/Time: Tue, 25 Feb 2025 10:07:57 +0000



Post From: How to get modeless dialog box working? Code Provided.

[2018-12-24 07:16:10]
doetrader - Posts: 13
I'm not sure if the error relates to an instance handle, however, please do provide the instance handle in the next version. Also, would sc.ProcID help somewhere here in any way?

I'm also currently getting an error that says that the study has just caused a "CPU exception".

This is the part of the code that I have changed:



if (sc.MenuEventID != 0 && sc.MenuEventID == r_MenuID)

{

g_hwndFooBar =CreateDialogParamA((HINSTANCE)GetWindowLong((HWND)sc.ChartWindowHandle, GWL_HINSTANCE),
           "IDD_SIMPLEINPUTMENU",
           (HWND)sc.ChartWindowHandle,
           (DLGPROC)FooBarProc,
           1);
ShowWindow(g_hwndFooBar, SW_SHOW);

    SCString log;
    log.Format("%s", GetLastError());
    sc.AddMessageToLog(log, 1);
}

}

Date Time Of Last Edit: 2018-12-24 07:21:14