Sometimes a password will be plain text in complied code, but often programmers will break that sort of thing up or encrypt it and place it in places you wouldn't easily be able to identify as the password.
As a little test, you can compile a VB6 app where you have declared a few constants and variables, both assigned easy to spot unique values (like "This is my Constant" and "Here is my Variable").
Compile your code, and then view the compiled exe in notepad. The literals will show up as strings.
For example, if you make a variable and assign it a value of "THIS IS A LITERAL" you will be able to find the string: T H I S I S A L I T E R A L in your file.
I have seen hundreds of posts over the years looking for C++ or VB6 decompilers, but there is only so much info you can get out of doing it, and it will not be readable code, or anything close - most of it will not be useful at all. But the literals are there just for the taking in notepad without any decompiling at all.
Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems