INI ファイルを読み込むときに、

CString t1;char cs[100];
GetPrivateProfileString("window", "width", "0", cs, 0, spath);
t1.Format("%s", cs);

こう書いたのですが、まともに読み取れません。
解決法を知っておられる方はおられますか?