471,092 Members | 1,101 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

conversion of String data into Binary data in the registry

I want to store a String value as a Binary data into the registry.
The string value is a name & email address and it has to be stored in hex format.
I am using the following

CString l_strKey = "SOFTWARE\\Microsoft\\Inbox\\LdapInfo";

l_strDWord = "SOFTWARE\\Microsoft\\Inbox\\LdapInfo\\test|test@t est.com";
iSuccess = RegSetValueEx(HKEY_LOCAL_MACHINE\\SOFTWARE\\Micros oft\\Inbox\\LdapInfo, l_strDWord, 0, REG_BINARY, (CONST BYTE*) &dwDisp, sizeof(DWORD));

can anyone please help. need a speedy solution. :confused:

thanks in advance.

Jul 11 '06 #1
0 1413

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by bowsayge | last post: by
15 posts views Thread by C# Learner | last post: by
8 posts views Thread by Saradhi | last post: by
2 posts views Thread by Chris Millar | last post: by
15 posts views Thread by Peter Afonin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.