Is it possible to convert a string table resource to a LPTSTR?

Also, during runtime, is it possible to compare a string to an entry
in the string table and get it's ID?