How to declare an __stdcall function pointer

前端 未结 1 1302
时光取名叫无心
时光取名叫无心 2020-12-15 15:59

I tried this

typedef void (* __stdcall MessageHandler)(const Task*);

This compiles but gives me this warning (VS2003):

相关标签:
1条回答
  • 2020-12-15 16:20

    As MSDN says, the correct way to write this is

    typedef void (__stdcall *MessageHandler)(const Task*);
    
    0 讨论(0)
提交回复
热议问题