I dont think you can as resource files are compiled by rc.exe then compiled again into the exe. Why not encrypt the password and save to a text file, like cookies do?