Delphi: Problem with RegSetValueEx


[ Related Articles and Replies ] [ DelphiLand Discussion Forum ]

Posted by backeyes on November 23, 2002 at 18:44:26:

Hello,

Here is my problem :

RegSetValueEx(hndKey,'number',0,REG_DWORD,StrPCopy(ValBuf,'1'),cb);

1 is converted to its unicode (31) value in the registry so that my "number" value is 31, but how can i do if i want that "number" = 1 in the registry
(ValBuf is a buffer...)

I tried a lot of things but still can't figure with this one. Any help would be appreciated

regards


Related Articles and Replies:


[ Related Articles and Replies ] [ DelphiLand Discussion Forum ]