But if ReadProfileBinary isn't fetching back the same data you wrote with WriteProfileBinary then that's the problem - that ought to just work. But I can't think of a good reason why 2003 should be any different than 2K or XP.
I do believe you (and Paul) are onto something there - I seem to recall reading that registry functions converted to Unicode even if supplied as non-Unicode... but then surely when read out by similar non-Unicode methods they should come back converted too?
I bet the problem lies elsewhere. When you write *binary* data, conversion to Unicode simply doesn't make sense at all! When reading binary data, you get back what you put there. There's no magic. That is, of course, assuming that the functions don't fail for reasons like improper ACLs, etc.
Andrew, have you tried to debug the app on 2K3? At least, have you tried to manually inspect the registry after writing the data?
I have done this before, and in fact it was the same LOGFONT I wrote to the registry and read back! It should work, since the OS doesn't have any say on the structure size/whatever, since it's determined at compile time.
Ehsan
_______________________________________________ msvc mailing list msvc@beginthread.com See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.