在编译过程中出现的如题的错误。。我在给程序onmousemove的时候也出现上似的错误提示。。是我的库文件被破坏了?还是怎么样的。。请高手回答啊

解决方案 »

  1.   

    Compiler Error C2601
    'function name' : local function definitions are illegalAn attempt was made to define a function within a function.The following is an example that will generate this error:int main()
    {
       int i = 0;   int funcname(int j)
       {
          j++;
          return j;
       }
       
       i = funcname(i);
       return 0;
    }If you move the function into the global space, outside the main() function, the program will compile and run.
      

  2.   

    int funcname(int j)
       {
          j++;
          return j;
       }int main()
    {
       int i = 0;      
       i = funcname(i);
       return 0;
    }
      

  3.   

    你拿msdn里的东西给我粘出来干啥我不是没有msdn我是问在什么情况下会出现这种情况具体编程的时候遇到的。类似的。
      

  4.   

    我自己找到了错误了。。自己顶一下吧以防下次再犯。原因是我定义了onlbuttondown,onmousemove,onlbuttonup三个消息函数。但我在第一个onlbuttondown中由于粗心少了一个}号导致{}配对的问题出现错误所以出现了以上的错误。