各位好 在VC++的小程序,想将参数写在注册表, 出现错误如下: ------------------------------
m_ip=AfxGetApp()->GetProfileString(_T("Config"),_T("ip"),
_T("http:\\www.xxx.com\sample\"));
-------------------------------
C:\Win98\Desktop\formsix\ConfigDlg.cpp(28) : error C2001: newline in constant
C:\Win98\Desktop\formsix\ConfigDlg.cpp(28) : fatal error C1057: unexpected end of file in macro expansion
--------------------------------
如果把”http:\\www.xxx.com\sample\“改为“sample"就没有问题。 为什么?注: "m_ip"设为CString类型。 请问如何解决。
m_ip=AfxGetApp()->GetProfileString(_T("Config"),_T("ip"),
_T("http:\\www.xxx.com\sample\"));
-------------------------------
C:\Win98\Desktop\formsix\ConfigDlg.cpp(28) : error C2001: newline in constant
C:\Win98\Desktop\formsix\ConfigDlg.cpp(28) : fatal error C1057: unexpected end of file in macro expansion
--------------------------------
如果把”http:\\www.xxx.com\sample\“改为“sample"就没有问题。 为什么?注: "m_ip"设为CString类型。 请问如何解决。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货