for input string "I32d"

classic Classic list List threaded Threaded
3 messages Options
xzg
Reply | Threaded
Open this post in threaded view
|

for input string "I32d"

xzg
Hi all,
 
There is a bug in axis2/c if compiles codes by vc6. It does not accept "int" parameters, and always complains as: for input string "I32d".
 
I edit codes in vc2008, and complie in vc6. It takes me more than three days to locate the bug. There is a definition for AXIS2_PRINTF_INT32_FORMAT_SPECIFIER in axutil_utils_defines.h as "%I32d". It causes the bug. To fix it, should change the codes as:
 
 
# if defined(_MSC_VER) && _MSC_VER >= 1300
#  define AXIS2_PRINTF_INT32_FORMAT_SPECIFIER "%I32d"
#  define AXIS2_PRINTF_UINT32_FORMAT_SPECIFIER "%I32u"
# else
#  define AXIS2_PRINTF_INT32_FORMAT_SPECIFIER "%d"
#  define AXIS2_PRINTF_UINT32_FORMAT_SPECIFIER "%u"
# endif
 
Regards,
Zhigang
 
Reply | Threaded
Open this post in threaded view
|

Re: for input string "I32d"

Chintan85
Hi Zhigang,
                Thank you for sharing this issue and solution. I faced same error while using Axis2/C with Java Web Service. The solution you posted fixed it. It saved me lot of time and effort.

Thanks ,
Chintan
xzg wrote
Hi all,

There is a bug in axis2/c if compiles codes by vc6. It does not accept "int" parameters, and always complains as: for input string "I32d".

I edit codes in vc2008, and complie in vc6. It takes me more than three days to locate the bug. There is a definition for AXIS2_PRINTF_INT32_FORMAT_SPECIFIER in axutil_utils_defines.h as "%I32d". It causes the bug. To fix it, should change the codes as:


# if defined(_MSC_VER) && _MSC_VER >= 1300
#  define AXIS2_PRINTF_INT32_FORMAT_SPECIFIER "%I32d"
#  define AXIS2_PRINTF_UINT32_FORMAT_SPECIFIER "%I32u"
# else
#  define AXIS2_PRINTF_INT32_FORMAT_SPECIFIER "%d"
#  define AXIS2_PRINTF_UINT32_FORMAT_SPECIFIER "%u"
# endif


Regards,
Zhigang
Reply | Threaded
Open this post in threaded view
|

RE: for input string "I32d"

Harvey III, Russell N
unsubscribe

-----Original Message-----
From: Chintan85 [mailto:[hidden email]]
Sent: Saturday, December 31, 2011 5:19 AM
To: [hidden email]
Subject: Re: for input string "I32d"


Hi Zhigang,
                Thank you for sharing this issue and solution. I faced same
error while using Axis2/C with Java Web Service. The solution you posted
fixed it. It saved me lot of time and effort:handshake:.

Thanks ,
Chintan

xzg wrote:

>
> Hi all,
>
> There is a bug in axis2/c if compiles codes by vc6. It does not accept
> "int" parameters, and always complains as: for input string "I32d".
>
> I edit codes in vc2008, and complie in vc6. It takes me more than three
> days to locate the bug. There is a definition for
> AXIS2_PRINTF_INT32_FORMAT_SPECIFIER in axutil_utils_defines.h as "%I32d".
> It causes the bug. To fix it, should change the codes as:
>
>
> # if defined(_MSC_VER) && _MSC_VER >= 1300
> #  define AXIS2_PRINTF_INT32_FORMAT_SPECIFIER "%I32d"
> #  define AXIS2_PRINTF_UINT32_FORMAT_SPECIFIER "%I32u"
> # else
> #  define AXIS2_PRINTF_INT32_FORMAT_SPECIFIER "%d"
> #  define AXIS2_PRINTF_UINT32_FORMAT_SPECIFIER "%u"
> # endif
>
>
> Regards,
> Zhigang
>
>

--
View this message in context: http://old.nabble.com/for-input-string-%22I32d%22-tp28591406p33058535.html
Sent from the Axis - C++ - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]