[zeromq-dev] Problem with embedded ZeroMQ (static lib) under Windows
Oliver Smith
oliver at kfs.org
Fri Apr 29 20:13:00 CEST 2011
On 4/29/2011 1:04 PM, Martin Sustrik wrote:
> 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.
zmq::uuid_t::uuid_t ()
{
RPC_STATUS ret = UuidCreate (&uuid);
zmq_assert (ret == RPC_S_OK);
ret = UuidToString (&uuid,&string_buf);
"string_buf" is an RPC_CSTR (const char*), UuidToString is #defined as UuidToStringW, which expects a wide string pointer...
- Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110429/9041e7e6/attachment.htm>
More information about the zeromq-dev
mailing list