kvack
1
I copied this code from the manual …with some minor
modifications … why isnt the file-dialog showing?
and ‘3’ is never written to the console ? 
/* create a new dialog /
PtFileSelectionInfo_t info;
puts(“1”);
/ eliminate ‘unreferenced’ warnings /
widget = widget, apinfo = apinfo, cbinfo = cbinfo;
memset(&info, 0, sizeof(PtFileSelectionInfo_t));
puts(“2”);
/ show the dialog /
PtFileSelection(widget, NULL, “Open File”,"/root",
".htm, *.html, *.shtml", NULL,
NULL, NULL, &info, 0);
/never written to console/
puts(“3”);
kvack <eh@nospam.ty> wrote:
: It works now…
: Changed the parent to NULL(it wasnt happy with the menu as parent) 
That makes sense – the menu has probably been destroyed by the time
the callback is invoked.
Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems Ltd.
kvack
3
Previously, kvack wrote in qdn.public.qnxrtp.devtools:
I copied this code from the manual …with some minor
modifications … why isnt the file-dialog showing?
and ‘3’ is never written to the console ? > 
/* create a new dialog /
PtFileSelectionInfo_t info;
puts(“1”);
/ eliminate ‘unreferenced’ warnings /
widget = widget, apinfo = apinfo, cbinfo = cbinfo;
memset(&info, 0, sizeof(PtFileSelectionInfo_t));
puts(“2”);
/ show the dialog /
PtFileSelection(widget, NULL, “Open File”,"/root",
".htm, *.html, *.shtml", NULL,
NULL, NULL, &info, 0);
/never written to console/
puts(“3”);
It works now…
Changed the parent to NULL(it wasnt happy with the menu as parent) 