I have a lookup table in my Squirrel script, and I'm using wxString to do some string operations. No matter what I do, though, I cannot use the wxString as a key value in the table! It gives me the error: "the index 'instance' does not exist", and the script fails. I've searched high and low for a simple tostring function, with no success. There has to be SOME way to convert a wxString into a normal Squirrel String...
EDIT:
I ended up using a foreach to go through each key and check if it's equal... but that's pretty hacky and I'd really like to know the real way to do it.