The cobalt hexacyanoferrate film (CoHCF) was deposited on the surface of a glassy carbon (GC) electrode with a potential cycling procedure in the presence and absence of the cationic surfactant, cetyl trimethylammonium bromide (CTAB), to form CoHCF modified GC (CoHCF/GC) electrode. It was found that CTAB would affect the growth of the CoHCF film, the electrochemical behavior of the CoHCF film and the electrocatalytic activity of the CoHCF/GC electrode towards the electrochemical oxidation of dopamine (DA). The reasons of the electrochemical behavior of CoHCF/GC electrode influenced by CTAB were investigated using FTIR and scanning electron microscope (SEM) techniques. The apparent rate constant of electrocatalytic oxidation of DA catalyzed by CoHCF was determined using the rotating disk electrode measurements.