使用DirectDraw画线。表面是一个按线性排列的内存块,它可以用一个char数组来描述。通过调用IDirectDrawSurface::Lock()方法,就可以访问与每个表面相关的内存。-using DirectDraw line drawing. The surface is a linear arrangement on the block of memory, it can use a char array to describe. By calling IDirectDrawSurface : : Lock () method, we can visit with each surface-associated memory.
编译代码需要Windows XP及其以上的版本,运行程序需要数字电视卡。同时需要安装DirectX 9。-compiled code need Windows XP and above versions, operational procedures need digital TV card. While the need to install DirectX 9.