Hi Tim & All, On Tue, Apr 15, 2008 at 6:44 PM, Tim Golden wrote: > Andrea Gavana wrote: > > Thank you a lot, now everything is perfectly clear. I made this class > > communicate with the registry where I store a file name (in which I > > have all my files for which I want the overlay icon), and it works > > like a charm, with IsMemberOf checking this particular registry key > > and returning the appropriate value if the file name is in my list of > > files. > > Not that it matters too much, but if you're using a registry entry > anyway, why not simply list the files in the registry instead > of the double-indirection of having the registry reference a > file which holds the other files !?
I initially thought to do that, but then by reading this: http://aspn.activestate.com/ASPN/docs/ActivePython/2.5/pywin32/win32api__RegSetValue_meth.html And specifically this comment: "Value lengths are limited by available memory. Long values (more than 2048 bytes) should be stored as files with the filenames stored in the configuration registry. This helps the registry perform efficiently." I decided to do the double-indirection. It's not that complicated in the end :-D > > Is there anything special I should do in order to make this thing work > > in an executable created by py2exe? > > You probably need to post your setup.py (or however you're > doing things with py2exe). I seem to recall that py2exe has > some specifics to support COM servers, but I'm no expert. I was compiling my com server with the wrong py2exe parameters... now it works. I have a question anyway: since I don't know anything about COM servers and friends, will my COM server be restarted by Windows when the computer restart or a user logoff and logon again? Or should I find a way to register and restart it every time a user switch off and on his/her computer? Thank you for your suggestions, this list has been very helpful and kind towards a completely pywin32-ignorant like me :-D Andrea. "Imagination Is The Only Weapon In The War Against Reality." http://xoomer.alice.it/infinity77/ _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32