NT DLL modules and C++

Adrian Eyre a.eyre at optichrome.com
Wed Nov 3 09:39:23 EST 1999

> How do I get Python to call the initialization under NT?

This should do the trick (for module spam.dll):

#include <Python.h>

extern "C" void __declspec(dllexport) initspam()
	// Initialisation code here...

Make sure you link with python15.lib

Adrian Eyre <mailto:a.eyre at optichrome.com>
Optichrome Computer Solutions Ltd
Maybury Road, Woking, Surrey, GU21 5HX, UK
Tel: +44 1483 740 233  Fax: +44 1483 760 644

More information about the Python-list mailing list