Adrew35: This may sound like a stupid question but, I got a game off of a gog account that stopped working and wanted to play connect that game to my new gog account but it wants a code, how do I get this code?
As you said you got the game off your other account.
Galaxy checks the account you're currently using and doesn't see the game as owned.
This is why you're getting that message.
However the game will still launch if you try to launch it.
It's just that stuff like achievements (if it has some) won't be awarded.
Edit: You don't even have to launch the game from Galaxy, just go to the folder where the game was installed and launch the game right there.