在 ??, 2003-09-13 00:15, Karl Forner 寫道: > I can put them in the par file, the problem is that PAR can fake the > perl loading mechanism to > make it load from the PAR file, but in the wxperl context, the loading > is done by the wxwindows c++ code. > Is it possible to handle this problem in an elegant and simple way ??
Well, yes and no. For Tk-based applications, we override its file-fetching part with a preceding call to PAR::unpar and _dl_extract, so any resources can be extracted from the .par file before Tk's C-level hooks takes effect. See sub PATCH_CONTENT in line 277 in bin/pp for the implementation. (Note that you may need to refer to a Tk.pm to understand what it's doing.) So... Something like this for Wx is, I imagine, possible. However, I can't get Wx.pm to compile on my FreeBSD machine, so there's no easy way for me to work on this. :-/ Thanks, /Autrijus/
signature.asc
Description: =?UTF-8?Q?=E9=80=99=E6=98=AF=E6=95=B8=E4=BD=8D=E5=8A=A0=E7=B0=BD?= =?UTF-8?Q?=E7=9A=84=E9=83=B5?= =?UTF-8?Q?=E4=BB=B6?=
