Hi,
Your c file must under \OriginC\Originlab folder in Origin program path for this example.
Please look at this line in example codes:
GraphPreviewDlg::GraphPreviewDlg(GraphPage& gp, bool bRealTimeUpdate, int ID)
:ResizeDialog(ID, "ODlg")
"ODlg" means the file name of dialog resource. If not specify path, the default path of the dll file is the same as the source c file. ODlg.dll file is an Origin buildin file under \OriginC\Originlab folder, so need put source file under the same path.
This function just an example, you can display graph preview on your dialog, then change "ODlg" as your own resource file path and name with absolute path, then will not this limitation.
Iris