Re: [python-win32] ctypes and DLL

2008-07-24 Thread Thomas Heller
Marcus.CM schrieb: Hi On Windows/Vista :- vr = ctypes.CDLL(str) When loading a DLL that is corrupted using cytpes, i get a bombed out box with python.exe - bad image as the message box title instead of handling it at my exception handler. How do i do this without the ugly

Re: [python-win32] ctypes and DLL

2008-07-24 Thread Marcus.CM
Hi Thomas, Thanks, will give it a shot . My main concern is that i need to use the code in a service and have a display msgbox is not an ideal design. Marcus Thomas Heller wrote: Marcus.CM schrieb: Hi On Windows/Vista :- vr = ctypes.CDLL(str) When loading a DLL that is corrupted

[python-win32] ctypes and DLL

2008-07-23 Thread Marcus.CM
Hi On Windows/Vista :- vr = ctypes.CDLL(str) When loading a DLL that is corrupted using cytpes, i get a bombed out box with python.exe - bad image as the message box title instead of handling it at my exception handler. How do i do this without the ugly messagebox from python ?

[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