Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with StringFromGUID2

0 views
Skip to first unread message

Michael Werts

unread,
Feb 17, 1995, 1:00:49 PM2/17/95
to
As anyone else noticed the function StringFromGUID2 putting NULLs in-between
every character of the generated string?

Other than that the value in the string is correct.

--------------------------------------
MICHAEL WERTS -- we...@csulb.edu
Computer Engineering Computer Science
California State University Long Beach
--------------------------------------

Curt Hagenlocher

unread,
Feb 18, 1995, 10:18:46 PM2/18/95
to
Michael Werts <we...@engr.csulb.edu> writes:

>As anyone else noticed the function StringFromGUID2 putting NULLs in-between
>every character of the generated string?

>Other than that the value in the string is correct.

You're getting a Unicode string back. What platform are you using?

This question seems to come up a lot... Someone recently posted a
notice that they were interested in maintaining (or at least starting)
a FAQ. This question definitely belongs in.

--
Curt Hagenlocher
c...@earthlink.net
c...@netcom.com

Peter Berndt

unread,
Feb 22, 1995, 4:33:35 PM2/22/95
to
In article <Pine.SGI.3.91.95021...@heart.engr.csulb.edu>,

Michael Werts <we...@engr.csulb.edu> wrote:
>As anyone else noticed the function StringFromGUID2 putting NULLs in-between
>every character of the generated string?
>
>Other than that the value in the string is correct.

This is not a problem, this is a feature!
You just discovered, that OLE2 on Win32 is fully UNICODE, so all
characters are 32bit, and the Highword for an ascii character is \0...
Keep discovering... ;-)

Peter
ber...@cems.umn.edu

0 new messages