帮忙把 vb.net 转一下 c#

huing 2007-09-04 03:21:03
bool DisplayError = true; // Display Standard IE Script Error Dialog


bool ContinueRunningScripts = true; // Continue to run Scripts


HTMLDocumentClass Doc = (HTMLDocumentClass) pvaIn;


IHTMLEventObj2 ev = (IHTMLEventObj2) Doc.parentWindow.@event;


int errorLine = (int) ev.getAttribute("errorLine", 0);


string errorCharacter = ev.getAttribute("errorCharacter",
0).ToString();


int errorCode = (int) ev.getAttribute("errorCode", 0);


string errorMessage = (string) ev.getAttribute("errorMessage", 0);


string errorUrl = (string) ev.getAttribute("errorUrl", 0);


if(eScriptError != null) {


DisplayError = eScriptError(this, errorUrl, errorLine,
errorMessage, out ContinueRunningScripts);


// If were not displaying an error message then pause a moment


if(!DisplayError) Sleep(2000);


}


pvaOut = (System.Boolean) ContinueRunningScripts;


throw new COMException("", (DisplayError ? S_ERROR : S_OK));


这里面前面都没有问题
就是 if(eScriptError != null)中的这个eScriptError 在c#中是什么东西不知道
...全文
165 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
huing 2007-09-13
  • 打赏
  • 举报
回复
其实主要想听听思想,而且这个好像也不完整阿,所以需要知道的人补全
ipusr509 2007-09-12
  • 打赏
  • 举报
回复
http://labs.developerfusion.co.uk/convert/vb-to-csharp.aspx
這個包你滿意!
huing 2007-09-12
  • 打赏
  • 举报
回复
具体参考http://topic.csdn.net/t/20061012/04/5076445.html
实在vb。net栏目的,我也不知道是不是vb。net
chuxue1342 2007-09-10
  • 打赏
  • 举报
回复
我没看到VB。NET的源码啊!!
huing 2007-09-10
  • 打赏
  • 举报
回复
up
huing 2007-09-07
  • 打赏
  • 举报
回复
up
huing 2007-09-06
  • 打赏
  • 举报
回复
具体参考http://topic.csdn.net/t/20061012/04/5076445.html
我也是在这里看到的,所以实在也不明白
pp7749 2007-09-05
  • 打赏
  • 举报
回复
eScriptError不事全面定义的变量吗?
ou108 2007-09-05
  • 打赏
  • 举报
回复
代码不全,头晕
huing 2007-09-05
  • 打赏
  • 举报
回复
up
huing 2007-09-04
  • 打赏
  • 举报
回复
具体参考http://topic.csdn.net/t/20061012/04/5076445.html

110,571

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧