星云外

vs2008的一个脚本错误

Line: 1669 Char: 17 Error: Unexpected call to method or property access. Code: 0 URL: file:///C:/Program%20Files/Microsoft%20Visual%20Studio%209.0/VC/VCWizards/CodeWiz/MFC/Variable/HTML/1033/default.htm

 

function GetDDXVariables()
{
        var classObj = window.external.ParentObject;
        bHasDDXText     = false;
        bHasDDXControl = false;
        strDDXTextVarName = "";
        strDDXControlVarName = "";

 

        for (var i=1; i <= classObj.Variables.Count; i++)
        {
                var extender = classObj.Variables(i).Extender("MFCDialogVariable");
                if (extender && extender.IDType != -1 && extender.ControlID == CONTROL_NAME.value)//发生错误的地方
                {
                        if (extender.IDType == 0)
                        {
                                bHasDDXText = true;
                                strDDXTextVarName = classObj.Variables(i).Name;
                        }
                        else if (extender.IDType == 1)
                        {
                                bHasDDXControl = true;
                                strDDXControlVarName = classObj.Variables(i).Name;
                        }
                }
        }
}

 

 

查阅后发现是DDV_MinMaxLongLong 导致的,删了就好

http://connect.microsoft.com/VisualStudioJapan/feedback/details/534203/ddv-minmaxlonglong

http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/5111c228-fbcb-4e93-9e47-798988eb346b

posted on 2010-10-22 21:15  星云外  阅读(340)  评论(0编辑  收藏  举报