[plt-scheme] write-resource reports #t, but fails..

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Mar 19 23:29:07 EDT 2007

At Sun, 18 Mar 2007 20:46:35 -0400, Kyle Smith wrote:
> I was attempting to wrapper up get and write-resource from the
> mred.ss library, for use specifically on the windows registry when I
> came across the following anomaly.  I can get correct values from the
> registry, but when I write a value to the registry, write-resource
> reports #t, meaning a successful write, but a subsequent get shows
> the value unchanged.

Fixed in SVN.

The problem was that `write-resource' used different Windows functions
that `get-resource', so that the registry entry was parsed differently.
The `write-resource' procedure now uses the same part of the Windows
API as `get-resource'.


Posted on the users mailing list.