首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

帮忙把 vb.net 转一下 c#该如何处理

2012-01-11 
帮忙把 vb.net 转一下 c#boolDisplayErrortrue//DisplayStandardIEScriptErrorDialogboolContinueRunnin

帮忙把 vb.net 转一下 c#
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#中是什么东西不知道

[解决办法]
代码不全,头晕
[解决办法]
eScriptError不事全面定义的变量吗?
[解决办法]
我没看到VB。NET的源码啊!!
[解决办法]
http://labs.developerfusion.co.uk/convert/vb-to-csharp.aspx
這個包你滿意!

热点排行