PythonWin and Dialogs in DLLs

Mark Hammond mhammond at skippinet.com.au
Tue Apr 18 20:58:26 EDT 2000


"Roger Burnham" <rburnham at cri-inc.com> wrote in message
news:38fcde9b.12797461 at news-server.socal.rr.com...
> On Tue, 18 Apr 2000 15:34:51 -0600, Ivan Van Laningham
> <ivanlan at callware.com> wrote:
>
> In your pywin.mfc.dialog.Dialog derived class, call the parent init
> with the dll:
>
>            Dialog.__init__(self, dllid='pathToYourDll')

Or, in some module simply say:

dll = win32ui.LoadLibrary('pathToYourDll')

And magically your DLL should be searched for resources.  Just use the
existing dialog functions as normal, but you can specify resource IDs from
your DLL.

Mark.






More information about the Python-list mailing list