Click here to Skip to main content
11,710,472 members (87,177 online)

C / C++ / MFC

 
AnswerRe: software update solution Pin
Richard Andrew x6426-Sep-13 17:34
professionalRichard Andrew x6426-Sep-13 17:34 
AnswerRe: software update solution Pin
Richard Andrew x6426-Sep-13 11:09
professionalRichard Andrew x6426-Sep-13 11:09 
GeneralRe: software update solution Pin
koll060426-Sep-13 15:06
memberkoll060426-Sep-13 15:06 
Questionwhy gSOAP only require the root CA when accessing HTTPS? Pin
szh12125-Sep-13 17:10
memberszh12125-Sep-13 17:10 
AnswerRe: why gSOAP only require the root CA when accessing HTTPS? Pin
Richard MacCutchan25-Sep-13 21:39
mvpRichard MacCutchan25-Sep-13 21:39 
Questionhow to make this working: srand(time(NULL)); Pin
mrby12325-Sep-13 12:58
membermrby12325-Sep-13 12:58 
AnswerRe: how to make this working: srand(time(NULL)); Pin
Richard Andrew x6425-Sep-13 13:12
professionalRichard Andrew x6425-Sep-13 13:12 
QuestionCRegKey read from registry? Pin
bosfan25-Sep-13 6:19
memberbosfan25-Sep-13 6:19 
Hi,
i need some help with CRegKey to read from registry Frown | :(

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


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

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:
int *value = new int[count];
myregkey.SetBinaryValue(_T("key"), (BYTE*)value, sizeof(int) * count);


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 7:47
professionalRichard Andrew x6425-Sep-13 7:47 
GeneralRe: CRegKey read from registry? Pin
bosfan25-Sep-13 21:46
memberbosfan25-Sep-13 21:46 
AnswerRe: CRegKey read from registry? Pin
Richard MacCutchan25-Sep-13 21:37
mvpRichard MacCutchan25-Sep-13 21:37 
GeneralRe: CRegKey read from registry? Pin
bosfan25-Sep-13 21:45
memberbosfan25-Sep-13 21:45 
GeneralRe: CRegKey read from registry? Pin
Richard MacCutchan25-Sep-13 22:03
mvpRichard MacCutchan25-Sep-13 22:03 
GeneralRe: CRegKey read from registry? Pin
bosfan25-Sep-13 22:32
memberbosfan25-Sep-13 22:32 
GeneralRe: CRegKey read from registry? Pin
Richard MacCutchan25-Sep-13 22:45
mvpRichard MacCutchan25-Sep-13 22:45 
GeneralRe: CRegKey read from registry? Pin
bosfan26-Sep-13 20:42
memberbosfan26-Sep-13 20:42 
GeneralRe: CRegKey read from registry? Pin
Richard MacCutchan26-Sep-13 21:30
mvpRichard MacCutchan26-Sep-13 21:30 
QuestionSocket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 0:47
membermanoharbalu25-Sep-13 0:47 
AnswerRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 1:01
mvpRichard MacCutchan25-Sep-13 1:01 
GeneralRe: Socket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 2:24
membermanoharbalu25-Sep-13 2:24 
GeneralRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 2:59
mvpRichard MacCutchan25-Sep-13 2:59 
GeneralRe: Socket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 19:12
membermanoharbalu25-Sep-13 19:12 
GeneralRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 21:28
mvpRichard MacCutchan25-Sep-13 21:28 
GeneralRe: Socket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 22:11
membermanoharbalu25-Sep-13 22:11 
GeneralRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 22:21
mvpRichard MacCutchan25-Sep-13 22:21 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 1 Sep 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid