Jacob Kruger wrote:
> Although have looked around, haven't found too much consistent
> information relating to doing something like referencing a DLL,
> preferably using something like a relative file path, as opposed to
> having it as a registered DLL through regsvr32, etc.
>  
> Is this possible/simple as such?

What kind of DLL?  Regsvr32 is only used to register COM DLLs. 
Registration allows you to create objects using only the CLSID, so you
don't need to know the name of the DLL.  If you prefer, however, you can
load the dll and call its DllGetClassObject entry point.  That's what
CoCreateInstance eventually does.

If you're talking about a normal (non-COM) DLL, then registration is not
used.  You can certainly use a full path in ctypes:
    import ctypes
    c = ctypes.cdll.LoadLibrary( '\\dev\\MyDll.dll')

If that's not what you mean, perhaps you should be more explicit.

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to