A method of real time sampling and data processing of ECG signal in Windows98 is introduced in this article. It makes the data collecting and processing easy by driving the A/D transforming card with the Vxd programmed with VtoolsD and VC++, drawing the curve of ECG on memory DC, and utilizing the virtual memory technique to realize the data storing.