gog2002x: I'm not sure I'm understanding the question right. Are you saying you own the GOG version of this game? And also have a CD/DVD retail version of the game?
GalliCZE: Yep, I have a one game on GOG but also second game on CD/DVD.
If you don't mind me asking. With the GOG version, do you need the CD/DVD version anymore? Also, which game is this? In case people can provide help in other ways.
I take it the codes for the retail version got lost? As far as any GOG codes, I'm not aware of them working with retail versions.
You could always try the games main website and see iff their support team can reissue you a code if you explain it to them properly. Stardock did that for me recently for Sins of the Solar Empire Trinity (a DRM free version in my case).