Enumerating STRING-TABLE in dll

Thomas Heller thomas.heller at ion-tof.com
Wed Jan 30 04:44:47 EST 2002


"Thomas Heller" <thomas.heller at ion-tof.com> wrote in message news:a38f26$167v5l$1 at ID-59885.news.dfncis.de...
> I have some code which *builds* string tables, maybe this can help you.
>
> It is at
> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/py2exe/py2exe/py2exe/resources/StringTables.py
>

It is used this way:

st = StringTable()
st.add_string(100, "blahblah")
st.add_string(999, "some text")
...
for id, data in st.binary():
    add_resource(exe_file, data, RT_STRING, id)

This should at least give you an idea...

Thomas





More information about the Python-list mailing list