[zeromq-dev] Problem with embedded ZeroMQ (static lib) under Windows
Martin Sustrik
sustrik at 250bpm.com
Fri Apr 29 20:04:17 CEST 2011
On 04/29/2011 07:14 PM, Oliver Smith wrote:
> The crash is basically caused by the forced casting to char* of the
> incoming string, which is actually being stored as wchar_ts. Thus
> instead of the UUID being<byte><byte><byte><byte> ... it is
> <byte><0><byte><0><byte><0>...
You mean the string returned by UuidToString?
The strange thing is that parameter is unsigned char rather than TCHUR
or alike.
However, existence of UuidToStringA and UuidToStringW seems to suggest
that the parameter is actually a TCHAR string.
In such a case just replace UuidToString by UuidToStringA and that
should do the trick.
Martin
More information about the zeromq-dev
mailing list