Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Hello!
I want to open a *.gph file with the ProFileOpen dialog.
It works fine, but is it possible to use the defined "mnu" file in the directory
so thatI got the same dialog like "Insert" "User-Defined Feature..."
Thanks!
Lars
ProPath TheFile;ProPath DefaultPath = L";
/* No default dirs */
ProPath *path_arr = NULL;
ProName *path_lab_arr = NULL;
err = ProArrayAlloc(0, sizeof(ProPath), 1, (ProArray*)&path_arr);
err = ProArrayAlloc(0, sizeof(ProPath), 1, (ProArray*)&path_lab_arr);
ProName Option = L"pro_group_dir";
ProPath *wValues = NULL;
int nValues;
err = ProConfigoptArrayGet(Option, &wValues);
err = ProArraySizeGet(wValues, &nValues);
if (nValues > 0)
ProWstringCopy(wValues[0], DefaultPath, PRO_VALUE_UNUSED);
err = ProFileOpen(L"Open", L"*.gph", path_arr, path_lab_arr,
DefaultPath, NULL, TheFile);
