A dll question

Dave Beynon flagg at moo.cus.org.uk
Tue Oct 24 10:52:11 EDT 2000
Hi.

Apologies if this question seems a bit dim, but 

I am having some trouble embedding some C++ code into a python program under 
windows NT.  Currently I am using swig to generate a framework for my code
and compiling under MS visual C++ 6.0.  I get a dll generated, but python
is refusing to pick up the dll.

I am using python 1.5.2 btw.

The interface definition is as follows:

%module fact  
%{
#include <fact.h>
%}
class Fact
{

public:
	
	Fact(int n);
	int get_x();
}


this is imported (or not) with the line

import twinkle_lib

the file is called twinkle_lib.dll

Is there anything obvious that I am doing wrong?

thanks

    David Beynon



More information about the Python-list mailing list