实现实现论坛自动发帖回帖功能? 论坛灌水机抓取页面http://forum.csdn.net/OpenApi/forumapi.asmx 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 void postText(Guid forumId, string subject, string body, csdn.forumapi.EditorType type, int point) { csdn.forumapi.Post post = new csdn.forumapi.Post(); post.forumId = forumId; post.isAskExpert = false; post.expertUserName = "1"; post.point = point; post.subject = subject; post.editor = type; post.body = body; post.tag = "2"; csdn.forumapi.Error error = null; string url = null; bool succeed = false; try { succeed = _csdnapi.Post(_csdnIdentity, post, out error, out url); } catch (Exception e) { succeed = false; reportError("发贴", e.ToString()); return; } if (!succeed) reportError("发贴", error); else reportSuccess("发贴成功, \r\n新贴的地址为: " + url); } 串口通信 大数据量处理 ◆◆◆ 求一个MySQL查询语句 C# textBox1.text的焦点 [求助]关于键盘事件的问题? 急求:关于treeView的节点删除问题:如何删除一个树中没有子节点的树的节点?。 VC#2005 EXPress 中如何设置括号自动匹配? 简单的dataGrid刷新问题 如何显示打印窗体printDialog? asp.net 调用事件问题? 一个简单的问题 如何关闭webBrowser控件里打开的新浏览器窗口 麻烦各位帮我解决个问题!
void postText(Guid forumId, string subject, string body, csdn.forumapi.EditorType type, int point)
{
csdn.forumapi.Post post = new csdn.forumapi.Post();
post.forumId = forumId;
post.isAskExpert = false;
post.expertUserName = "1";
post.point = point;
post.subject = subject;
post.editor = type;
post.body = body;
post.tag = "2"; csdn.forumapi.Error error = null;
string url = null;
bool succeed = false;
try
{
succeed = _csdnapi.Post(_csdnIdentity, post, out error, out url);
}
catch (Exception e)
{
succeed = false;
reportError("发贴", e.ToString());
return;
}
if (!succeed)
reportError("发贴", error);
else
reportSuccess("发贴成功, \r\n新贴的地址为: " + url);
}