Extensions on Windows, questions for experts.

Michel Van den Bergh vdbergh at luc.ac.be
Tue Jan 15 04:45:54 EST 2002


>

I realize there is an issue with data structures, but I don't quite
understand it. Is there some place I can learn about data structures
embedded in dll's?

>
>
> (4) ensure the data structures your extension is using are
> aligned with those in the Python DLL you're loading.  This is
> really the only truly-delicate step.  No macros can help, as
> those get solved at compile-time and the structures' layout
> may change afterwards.
>
> > Perhaps an even better idea would be to link agains a dll
> > named something like "python_proxy.dll" which would perform
> > steps (1)-(3). Then C-extensions would not have to be modified
> > at all. The only thing necessary is to distribute python_proxy.dll
> > with your application.
>




More information about the Python-list mailing list