Pyrrolo[2,3-c]pyridine or pyrrolo[3,2-c]pyridine compounds having the general formula (A),wherein the dashed lines, X, Y and R1 through R5 are as defined in the specification. The compounds are useful in the prophylaxis or treatment of viral infections.