あと、
while ( (s = sr->ReadLine()) != null ){
ってかくと
error C2065: 'null' : 定義されていない識別子です。
って出るんですが、nullって無いの?