Click here to Skip to main content
15,498,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: software update solution Pin
Richard Andrew x6426-Sep-13 18:34
professionalRichard Andrew x6426-Sep-13 18:34 
AnswerRe: software update solution Pin
Richard Andrew x6426-Sep-13 12:09
professionalRichard Andrew x6426-Sep-13 12:09 
GeneralRe: software update solution Pin
koll Zhu26-Sep-13 16:06
Memberkoll Zhu26-Sep-13 16:06 
Questionwhy gSOAP only require the root CA when accessing HTTPS? Pin
szh12125-Sep-13 18:10
Memberszh12125-Sep-13 18:10 
AnswerRe: why gSOAP only require the root CA when accessing HTTPS? Pin
Richard MacCutchan25-Sep-13 22:39
mveRichard MacCutchan25-Sep-13 22:39 
Questionhow to make this working: srand(time(NULL)); Pin
mrby12325-Sep-13 13:58
Membermrby12325-Sep-13 13:58 
AnswerRe: how to make this working: srand(time(NULL)); Pin
Richard Andrew x6425-Sep-13 14:12
professionalRichard Andrew x6425-Sep-13 14:12 
QuestionCRegKey read from registry? Pin
bosfan25-Sep-13 7:19
Memberbosfan25-Sep-13 7:19 
Hi,
i need some help with CRegKey to read from registry Frown | :(

Here what works fine:
<br />
int *target = NULL;<br />
AfxGetApp()->GetProfileBinary(m_strKey, _T("key"), (BYTE **)&target, &bytes);<br />


but i need to do this with registry key, like:
<br />
// CRegKey is there and opened without errors<br />
int *target = NULL;<br />
myregkey.QueryBinaryValue(_T("key"), (BYTE**)&target, &bytes);<br />

Error is allways ERROR_MORE_DATA what means they are more information to read as i do?
To write binary data to registry works fine to, only read is my problem now.
Only for example here how i write binary to registry:
<br />
int *value = new int[count];<br />
myregkey.SetBinaryValue(_T("key"), (BYTE*)value, sizeof(int) * count);<br />


Can somebody help me how to read binary from registry with CRegKey::QueryBinaryValue??

Thanks in advance
bosfan
AnswerRe: CRegKey read from registry? Pin
Richard Andrew x6425-Sep-13 8:47
professionalRichard Andrew x6425-Sep-13 8:47 
GeneralRe: CRegKey read from registry? Pin
bosfan25-Sep-13 22:46
Memberbosfan25-Sep-13 22:46 
AnswerRe: CRegKey read from registry? Pin
Richard MacCutchan25-Sep-13 22:37
mveRichard MacCutchan25-Sep-13 22:37 
GeneralRe: CRegKey read from registry? Pin
bosfan25-Sep-13 22:45
Memberbosfan25-Sep-13 22:45 
GeneralRe: CRegKey read from registry? Pin
Richard MacCutchan25-Sep-13 23:03
mveRichard MacCutchan25-Sep-13 23:03 
GeneralRe: CRegKey read from registry? Pin
bosfan25-Sep-13 23:32
Memberbosfan25-Sep-13 23:32 
GeneralRe: CRegKey read from registry? Pin
Richard MacCutchan25-Sep-13 23:45
mveRichard MacCutchan25-Sep-13 23:45 
GeneralRe: CRegKey read from registry? Pin
bosfan26-Sep-13 21:42
Memberbosfan26-Sep-13 21:42 
GeneralRe: CRegKey read from registry? Pin
Richard MacCutchan26-Sep-13 22:30
mveRichard MacCutchan26-Sep-13 22:30 
QuestionSocket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 1:47
Membermanoharbalu25-Sep-13 1:47 
AnswerRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 2:01
mveRichard MacCutchan25-Sep-13 2:01 
GeneralRe: Socket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 3:24
Membermanoharbalu25-Sep-13 3:24 
GeneralRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 3:59
mveRichard MacCutchan25-Sep-13 3:59 
GeneralRe: Socket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 20:12
Membermanoharbalu25-Sep-13 20:12 
GeneralRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 22:28
mveRichard MacCutchan25-Sep-13 22:28 
GeneralRe: Socket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 23:11
Membermanoharbalu25-Sep-13 23:11 
GeneralRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 23:21
mveRichard MacCutchan25-Sep-13 23:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.