You should post your pc specs, because this error is because you are using an unsupported video card to run EF/CoH(aka doesn't support DX9). Maybe you need to update your drivers and install the DirectX package, if you are using a supported video card(or try lowering your settings).