My VC Compiler gives the correct output provided you use GetBuffer and not Getbuffer.