1.为什么书中在WinMain()函数中的最后都返回return msg.wParam?
2.书中va_start()宏具体是什么意思?
有谁知道请告诉我,谢谢!!

解决方案 »

  1.   

    va_arg, va_end, and va_start 等宏主要是为了方便访问函数参数而做的va_start sets arg_ptr to the first optional argument in the list of arguments passed to the function. The argument arg_ptr must have va_list type. The argument prev_param is the name of the required parameter immediately preceding the first optional argument in the argument list. If prev_param is declared with the register storage class, the macro’s behavior is undefined. va_start must be used before va_arg is used for the first time.
      

  2.   

    第一个问题:
    先看WinMain函数的返回值:
    If the function succeeds, terminating when it receives a WM_QUIT message, it should return the exit value contained in that message's wParam parameter. If the function terminates before entering the message loop, it should return zero. 在msg的wParam中保存了退出值
      

  3.   

    1.其实返回什么没有关系,你可以return 0;
      

  4.   

    请问你在什么地方买到的windows程序设计这本书的啊,我跑完了南京所有的大书店都买不到
      

  5.   

    weiwei511(微微) ,我这儿有第五版的,你要不要,算6折给你,不过我不是在南京市,而是在南昌
      

  6.   

    我的
    [email protected]
    [email protected]