typedef unsigned ( __stdcall *start_address )( void * );
这句是什么意思?

解决方案 »

  1.   

    typedef int A;A a;  ===    int a;你说的问题只不过换成函数指针而已,其实本质一样:自己定义一种数据类型,以后可以拿来直接象int一样声明变量。
      

  2.   

    最近在看程序,具体函数附下:
    bool WSys::startThread(ThreadInfo *info)
    {
    info->active = true; typedef unsigned ( __stdcall *start_address )( void * ); unsigned int threadID;
    info->handle = (unsigned int)_beginthreadex( NULL, 0, (start_address)info->func, info, 0, &threadID );

        if(info->handle == 0) 
    return false; return true;}
    不理解typedef unsigned ( __stdcall *start_address )( void * );
    这句是什么意思?
    有高手帮忙指点一下!
      

  3.   

    该句声明了一个函数指针的原型,该函数的原型为
    unsigned int __stdcall start_address( void * );