Cheat Codes are activated only in a battle in the battle settings there is an option to use codes change no to yes.
Warhammer 40.000: Dawn of War – Dark Crusade: Cheat Codes Free Download
during the game press [Ctrl] + [Shift] + [~] and wow the console. Now enter:
cheat_power (N) – Gain N power
cheat_requisition (N) – get N order
cheat_killself – self-kill
cheat_revealall – get all
taskbar_hide – remove taskbar
taskbar_show – show taskbar
quit – quit the game
cls – clear the window
render_togglerainbow () – color of the rainbow
render_togglexray () – white textures become transparent
shadow_toggle – enable / disable showing shadows
setsimrate ([number]) – change the speed of the game
FOW_RevealAll Show full map
fog_toggle Remove Fog of War
sd_instant_build = 1 Enable Quick Build or Instant Build (Player + CPU)
sd_instant_build = 0 Disable Instant Build