If the NVO is *not* in a PBD, and is referenced only dynamically, such as
through the "CREATE USING" pseudo-statement:
n_base lnv_x
lnv_x = CREATE USING "n_cst_dwtotext"
PB will not include the object in the EXE. And for whatever reason, the PBR
doesn't support adding user object or windows (or anything other than
DW/BMP/ICO/CUR). What we've done is to create a code snippet that declares
an array of type Any in the application object Open event and simply
reference all such objects:
RETURN // don't need to execute the following, but need the
declarations
Any lnv_unref[] = {&
w_xyzzy, w_plugh, &
u_duman, u_seful, &
n_cst_dwtotext, n_torfull &
}
There are variations on this theme (or this is a variation of them). If
you're compiling into machine code, I do not know if the PB optimizer is
smart enough to remove the declarations because it won't be executed. You
can always work around that by reading from an INI/Registry entry that can't
exist (use an invalid syntax) and compare the result and put the
declarations inside of the IF. (Again, there are variations on this theme.)
--dang
-----Original Message-----
From: Crompton, Vivian (London) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 17, 1999 13:43
To: '[EMAIL PROTECTED]'
Subject: PFCSIG "Unresolvable external" at Run time, no error at design
time.
Hi All,
I have a PFC based app that is stubbornly refusing to work when I build an
executable.
I am getting the following:
Unresolvable external n_cst_dwtotext when linking reference
The error only occurs at run time, after an event that uses the object is
fired.
At design time ( ie. within the powerbuilder development environment) the
application runs perfectly, whether running it or stepping through the code
in the debugger.
I have tried the usual tricks of reegnerations, complete rebuilds, exporting
the object and reimporting it, etc. and have also restarted NT, done all of
the above again, to no avail.
Any suggestions as to the cause of this kind of error? It's driving me nuts.
Thanks,
Vivian
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS,
ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]