Hi all,
I’ve just created a dialog and created an internal link for it and somehow
if I use
ApCreateModule(ABM_MyDialog, widget, cbinfo)
it always returns NULL and the dialog doesn’t come up.
Any ideas?
I am using PhAb 2.01 on QNX 6.2.0
Sylvain
Sylvain Marcotte <smarcotte@vortek.com> wrote:
I’ve just created a dialog and created an internal link for it and somehow
if I use
ApCreateModule(ABM_MyDialog, widget, cbinfo)
it always returns NULL and the dialog doesn’t come up.
Any ideas?
From a quick look at the source code, there are several possible reasons
for ApCreateModule() to return NULL:
1 It can’t open or read the executable. If that’s the case, your
program would probably also fail to open its base window. Does it
have a base window?
2 The executable was build incorrectly and the module is missing.
When you’re building the program, is MyDialog.wgtd listed as one of
the arguments to phabbind?
3 The internal link defines a pre-realize setup function, and the
function returns Pt_END.
Thanks you got it.
Turns out someone in my group modified the basic Makefile and forgot to tell
me about it and whenever one adds a module to the project, the Makefile has
to be modified accordingly. I made that person aware of the abWfiles that’s
generated by PhAB and that the Makefile should make use of that file after I
gave him an earful for wasting a full day of my work.
Thanks for your help.
Sylvain
“Wojtek Lerch” <wojtek_l@yahoo.ca> wrote in message
news:b47t3j$gb3$1@inn.qnx.com…
Sylvain Marcotte <> smarcotte@vortek.com> > wrote:
I’ve just created a dialog and created an internal link for it and
somehow
if I use
ApCreateModule(ABM_MyDialog, widget, cbinfo)
it always returns NULL and the dialog doesn’t come up.
Any ideas?
From a quick look at the source code, there are several possible reasons
for ApCreateModule() to return NULL:
1 It can’t open or read the executable. If that’s the case, your
program would probably also fail to open its base window. Does it
have a base window?
2 The executable was build incorrectly and the module is missing.
When you’re building the program, is MyDialog.wgtd listed as one of
the arguments to phabbind?
3 The internal link defines a pre-realize setup function, and the
function returns Pt_END.
Sylvain Marcotte <smarcotte@vortek.com> wrote:
Turns out someone in my group modified the basic Makefile and forgot to tell
me about it and whenever one adds a module to the project, the Makefile has
to be modified accordingly. I made that person aware of the abWfiles that’s
generated by PhAB and that the Makefile should make use of that file after I
gave him an earful for wasting a full day of my work.
Thanks for your help.
No problem; it’s good to know it wasn’t my fault…