积极答复者
语言转换?

问题
答案
-
你好,
如果你用的是Visual Studio 2010或者更高的版本,你可以用auto这个变量替代var:
auto url = "aaa";
auto data = "bbb";
webBrowser1->Navigate(url, "", Encoding::UTF8->GetBytes(data), "Content-Type: application/x-www-form-urlencoded");
Damon Zheng
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已编辑 Damon ZhengModerator 2013年2月21日 10:52
- 已标记为答案 Damon ZhengModerator 2013年2月21日 13:56
-
这是因为在C++\CLI中,Encoding的第一个参数要求String^类型。
auto url = "aaa";
改为:String^ url = "aaa";
Damon Zheng
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已标记为答案 求知与释疑 2013年2月21日 12:27
全部回复
-
你好,
如果你用的是Visual Studio 2010或者更高的版本,你可以用auto这个变量替代var:
auto url = "aaa";
auto data = "bbb";
webBrowser1->Navigate(url, "", Encoding::UTF8->GetBytes(data), "Content-Type: application/x-www-form-urlencoded");
Damon Zheng
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已编辑 Damon ZhengModerator 2013年2月21日 10:52
- 已标记为答案 Damon ZhengModerator 2013年2月21日 13:56
-
将Encoding后面的“->”符号改成作用域符号“::”(之前的回复也编辑过了)
Damon Zheng
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
这是因为在C++\CLI中,Encoding的第一个参数要求String^类型。
auto url = "aaa";
改为:String^ url = "aaa";
Damon Zheng
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已标记为答案 求知与释疑 2013年2月21日 12:27