Click here to Skip to main content
15,897,187 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralClearing the Buffer in a MFC View Pin
suzie10024-Aug-05 16:51
suzie10024-Aug-05 16:51 
GeneralRe: Clearing the Buffer in a MFC View Pin
Christian Graus24-Aug-05 17:31
protectorChristian Graus24-Aug-05 17:31 
GeneralRe: Clearing the Buffer in a MFC View Pin
suzie10024-Aug-05 18:50
suzie10024-Aug-05 18:50 
GeneralRe: Clearing the Buffer in a MFC View Pin
MailtoGops24-Aug-05 19:26
MailtoGops24-Aug-05 19:26 
QuestionHow to drag a customaze struct and drop? Pin
freehawk24-Aug-05 15:54
freehawk24-Aug-05 15:54 
GeneralERROR_MORE_DATA on RegQueryValueEx() Pin
KingTermite24-Aug-05 14:43
KingTermite24-Aug-05 14:43 
GeneralRe: ERROR_MORE_DATA on RegQueryValueEx() Pin
KingTermite25-Aug-05 4:28
KingTermite25-Aug-05 4:28 
GeneralRe: ERROR_MORE_DATA on RegQueryValueEx() Pin
Blake Miller25-Aug-05 4:59
Blake Miller25-Aug-05 4:59 
Maybe you did not fill in the buffer size on input?
You need to tell it how big your buffer is, or else you would be getting that error.
If you still have troubles, post a few lines of your code setting up your data before and during call to functiona nd we cna help you figure it out.
In other words, not in about 12 years of writing Widnows software have I EVER got that error code back from RegQueryValue unexpectedly. When I do get it bakc, it is because I am testing how large the value's data is and will then allocate a large enough buffer during a subsequent call.

From MSDN:

lpcbValue
[in, out] Pointer to a variable that specifies the size of the buffer pointed to by the lpValue parameter, in bytes. When the function returns, this variable contains the size of the data copied to lpValue, including any terminating null characters.
If the data has the REG_SZ, REG_MULTI_SZ or REG_EXPAND_SZ type, this size includes any terminating null character or characters. For more information, see Remarks.

If the buffer specified lpValue is not large enough to hold the data, the function returns ERROR_MORE_DATA and stores the required buffer size in the variable pointed to by lpcbValue. In this case, the contents of the lpValue buffer are undefined.
GeneralRe: ERROR_MORE_DATA on RegQueryValueEx() Pin
KingTermite25-Aug-05 5:15
KingTermite25-Aug-05 5:15 
GeneralRe: ERROR_MORE_DATA on RegQueryValueEx() Pin
Blake Miller25-Aug-05 5:37
Blake Miller25-Aug-05 5:37 
GeneralNo runnable debuggees error in 'g' Pin
valerie9924-Aug-05 12:11
valerie9924-Aug-05 12:11 
AnswerRe: No runnable debuggees error in Pin
Shog924-Aug-05 13:07
sitebuilderShog924-Aug-05 13:07 
Generalthanks! seems like it repeat with .ecxr Pin
valerie9925-Aug-05 4:00
valerie9925-Aug-05 4:00 
GeneralRe: thanks! seems like it repeat with .ecxr Pin
Blake Miller25-Aug-05 5:04
Blake Miller25-Aug-05 5:04 
Generalhere is what I got... Pin
valerie9925-Aug-05 5:34
valerie9925-Aug-05 5:34 
GeneralRe: here is what I got... Pin
Blake Miller25-Aug-05 5:43
Blake Miller25-Aug-05 5:43 
Generalyou are amazing! Pin
valerie9925-Aug-05 5:59
valerie9925-Aug-05 5:59 
GeneralMFC regular DLL Pin
LeeeNN24-Aug-05 11:29
LeeeNN24-Aug-05 11:29 
AnswerRe: MFC regular DLL Pin
Shog924-Aug-05 13:09
sitebuilderShog924-Aug-05 13:09 
GeneralRe: MFC regular DLL Pin
LeeeNN24-Aug-05 13:51
LeeeNN24-Aug-05 13:51 
GeneralRe: MFC regular DLL Pin
Christian Graus24-Aug-05 14:07
protectorChristian Graus24-Aug-05 14:07 
GeneralRe: MFC regular DLL Pin
LeeeNN24-Aug-05 14:45
LeeeNN24-Aug-05 14:45 
AnswerRe: MFC regular DLL Pin
Shog924-Aug-05 14:59
sitebuilderShog924-Aug-05 14:59 
GeneralRe: MFC regular DLL Pin
LeeeNN24-Aug-05 15:25
LeeeNN24-Aug-05 15:25 
GeneralCalling programs from a VC++ program Pin
Aditya Rao24-Aug-05 8:02
Aditya Rao24-Aug-05 8:02 

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.