VC++ extension

Michael Hudson mwh21 at cam.ac.uk
Tue Aug 8 14:19:34 EDT 2000


Stuart Dallas <stuart.dallas at rcp.co.uk> writes:

> I am developing an extension for Python in Visual C++ 6. I have created
> a Win32 DLL project and exported the initx function. When I try to
> import the extension into Python it responds with the following message:
> 
> ImportError: dynamic module does not define init function
> 
> I have checked the DLL with QuickView and the init function is being
> exported.
> 
> Help!

Random guess: have you declared the initx function "extern C"?

Cheers,
M.

-- 
  After a heavy night I travelled on, my face toward home - the comma
  being by no means guaranteed.           -- paraphrased from cam.misc



More information about the Python-list mailing list