[python-win32] ctypes question DLL

2008-07-07 Thread Marcus Low
Hi, I have been reading the documentation on ctypes and the 2.5 python on ctypes when it comes to loading libraries. But surprisingly, or maybe i miss it somewhere, but How do you unload the loaded dll? For eg : dllfunc = ctypes.CDLL("mylib.dll") Later if i want to replace this dll without

Re: [python-win32] strange crashed on calling loaded shared Library in windows

2008-07-07 Thread Marcus Low
One more thing, maybe that is the cause, the vr = ctypes.CDLL was called by a different thread then the one using it in the 2nd scenario. Hmm...could this be the problem. Marcus Low wrote: I have this shared library that is loaded via : vr = ctypes.CDLL("varcfunction.dll") When i ran it thr

[python-win32] strange crashed on calling loaded shared Library in windows

2008-07-07 Thread Marcus Low
I have this shared library that is loaded via : vr = ctypes.CDLL("varcfunction.dll") When i ran it thru main : if __name__ == "__main__" : str = "a" LR = vr.DoIt(str) print "results %d" %(LR) It works perfectly fine and the return result was correct. I could loop it 1000 times w

Re: [python-win32] killing overlay extensions

2008-07-07 Thread TK Soh
On Mon, Jul 7, 2008 at 11:03 AM, Tim Golden <[EMAIL PROTECTED]> wrote: > TK Soh wrote: >> >> I'd like to know what's the 'proper' way to stop a pythonwin's overlay >> shell extension from kicking in. I've not been able find much >> documentation on this, particularly the return values of >> GetOver

Re: [python-win32] killing overlay extensions

2008-07-07 Thread TK Soh
On Mon, Jul 7, 2008 at 7:14 AM, Mark Hammond <[EMAIL PROTECTED]> wrote: >> I'd like to know what's the 'proper' way to stop a pythonwin's overlay >> shell extension from kicking in. I've not been able find much >> documentation on this, particularly the return values of >> GetOverlayInfo() function

Re: [python-win32] Python and IUnknown-based COM objects

2008-07-07 Thread Kirk Fertitta
Hi Tim, Thanks for your prompt and helpful reply. I'll have a look at comtypes and maybe wait for Thomas Heller to return if I struggle. Thanks again. -kirk Kirk Fertitta Chief Technical Officer Pacific MindWorks, Inc. www.pacificmindworks.com ph: 858-587-8876 x237 fax: 858-587-8907 -Or

Re: [python-win32] Python and IUnknown-based COM objects

2008-07-07 Thread Tim Golden
Kirk Fertitta wrote: I am trying to use a COM component that does not support the IDispatch interface. It has only early-bound IUnknown derived interfaces in it. The folks at ActiveState directed me to this list for some assistance. It seems from some of the documentation I’ve come across th

[python-win32] Python and IUnknown-based COM objects

2008-07-07 Thread Kirk Fertitta
I am trying to use a COM component that does not support the IDispatch interface. It has only early-bound IUnknown derived interfaces in it. The folks at ActiveState directed me to this list for some assistance. It seems from some of the documentation I've come across that Python can make ea

[python-win32] MSVC ++ and Boost libraries

2008-07-07 Thread Tony May
Is it possible to use the pre-built binaries with MSVC++ 2005 express edition? I get the following error from bjam when attempting to build the pyd from the source file hello.cpp. - hello.cpp has the following code trying to wrap a class BOOST_

Re: [python-win32] killing overlay extensions

2008-07-07 Thread Tim Golden
TK Soh wrote: I'd like to know what's the 'proper' way to stop a pythonwin's overlay shell extension from kicking in. I've not been able find much documentation on this, particularly the return values of GetOverlayInfo() function. Based on sample that I've found, the GetOverlayInfo() function ret

Re: [python-win32] killing overlay extensions

2008-07-07 Thread Mark Hammond
> I'd like to know what's the 'proper' way to stop a pythonwin's overlay > shell extension from kicking in. I've not been able find much > documentation on this, particularly the return values of > GetOverlayInfo() function. Based on sample that I've found, the > GetOverlayInfo() function returns a