#ifdef MQxx_EXPECT_TRUNCATED_INPUT
 #define CheckSpace(n, size, rcode)                                        
 if ((MQLONG)(in_lastbyte - *in_cursor + 1) < n*size)                     
 {                                                                         
   n = ((MQLONG)(in_lastbyte - *in_cursor + 1) / size);                    
 }                                                                         
 if ((MQLONG) (out_lastbyte - *out_cursor + 1) < n*size)                   
 {                                                                         
   n = ((MQLONG)(out_lastbyte - *out_cursor + 1) / size);                  
   rcode = (opts & MQGMO_ACCEPT_TRUNCATED_MSG)                             
           ? MQRC_TRUNCATED_MSG_ACCEPTED                                   
           : MQRC_CONVERTED_MSG_TOO_BIG;                                   
 }
 #else
 #define CheckSpace(n, size, rcode)                                        
 if ((MQLONG) (in_lastbyte - *in_cursor + 1) < n*size)                     
 {                                                                         
   n = ((MQLONG)(in_lastbyte - *in_cursor + 1) / size);                    
   rcode = (Reason == MQRC_TRUNCATED_MSG_ACCEPTED)                         
           ? MQRC_TRUNCATED_MSG_ACCEPTED                                   
           : MQRC_NOT_CONVERTED;                                           
 }                                                                         
 if ((MQLONG) (out_lastbyte - *out_cursor + 1) < n*size)                   
 {                                                                         
   n = ((MQLONG)(out_lastbyte - *out_cursor + 1) / size);                  
   rcode = (opts & MQGMO_ACCEPT_TRUNCATED_MSG)                             
           ? MQRC_TRUNCATED_MSG_ACCEPTED                                   
           : MQRC_CONVERTED_MSG_TOO_BIG;                                   
 }
 #endif
 QQ:1119878383  以上只是一部分,求大神帮助!