forum.sourcecode (2000-2005) & forum.td.sourcecode (2005-2010)
Posted by: Gautschi
RegCreateKeyExA( FGetBaseKey(Relative), Key, 0, STRING_Null,
0x000E000F, STRING_Null, TempKey, Disposition )
works under CTD3.1 properly but under CTD5.1 it return the error 87 (invalid
Has anybody an idea, which parameter could be wrong?
Thanks a lot for help!
Posted by: Krzysztof Dorko
Probably function is wrong
Since all strings in 5.1 are unicode I will try to use RegCreateKeyExW
Or try to convert all strings to Ansi
Posted by: Christoph Gautschi
Thanks for the fast answer! RegCreateKeyExW don't work.
How can I convert strings to Ansi?
- Site Admin
- Posts: 2170
- Joined: 04 Mar 2017, 18:34
- Location: Palm Springs, California
Posted by: Jeff Luther
v5.1 has SalStrToMultiByte & SalStrToWideChar for doing that.
Posted by: James McCall
In what way does RegCreateKeyExW not work? What's the error code? It works
fine for me (TD5.1 SP3 on Windows XP SP2).
Which operating system are you running it on? I recall having problems in
CTD2000 with RegCreateKeyExA on Windows NT.
Who is online
Users browsing this forum: [Ccbot] and 0 guests