[Tutor] creating a non-COM DLL

Lance lbrannma@cablespeed.com
Thu Nov 14 21:01:02 2002


Hi All,

I want to create a simple non-COM dll that I will call from a third party
program. I believe the third party program uses LoadLibrary. The DLL will
export C style functions, with pointers to doubles as arguments.

Do I add my import statements to the __init__ method of the class, e.g.

class MyClass:
    def __init__(self):
        import os, cPickle, some other modules
        os.chdir("c:\\foo")
    def read(self):
        d = cPickle.load(..from \foo )

etc....

Any advice will be appreciated.

Thanks,
Lance