语法错误:' - >'和语法错误:缺少';'之前' - >'

问题描述 投票:-3回答:1

这个语法出了什么问题?我尝试了30分钟不同的方式。 Intellisense没有强调任何内容,但它不会编译。如果您需要更多信息,请告诉我,并提前感谢您。

WSHttpBinding^ binding = gcnew WSHttpBinding();
TimeSpan^ t = gcnew TimeSpan->MaxValue;
binding->ReceiveTimeout = *t;
c++-cli
1个回答
-1
投票

我找到了答案:

WSHttpBinding^ binding = gcnew WSHttpBinding();
binding->ReceiveTimeout = System::TimeSpan::MaxValue;
© www.soinside.com 2019 - 2024. All rights reserved.