Click here to Skip to main content
16,006,001 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: [Win CE/Pocket PC]How to load an gif image on to a Button Pin
madyastha7-Aug-08 18:41
madyastha7-Aug-08 18:41 
GeneralRe: [Win CE/Pocket PC]How to load an gif image on to a Button Pin
madyastha7-Aug-08 22:41
madyastha7-Aug-08 22:41 
Questionmaking DWORD registry enteries Pin
VCProgrammer7-Aug-08 2:30
VCProgrammer7-Aug-08 2:30 
AnswerRe: making DWORD registry enteries Pin
SandipG 7-Aug-08 2:37
SandipG 7-Aug-08 2:37 
GeneralRe: making DWORD registry enteries Pin
VCProgrammer7-Aug-08 2:41
VCProgrammer7-Aug-08 2:41 
GeneralRe: making DWORD registry enteries Pin
SandipG 7-Aug-08 2:50
SandipG 7-Aug-08 2:50 
GeneralRe: making DWORD registry enteries Pin
VCProgrammer7-Aug-08 2:56
VCProgrammer7-Aug-08 2:56 
GeneralRe: making DWORD registry enteries Pin
David Crow7-Aug-08 3:02
David Crow7-Aug-08 3:02 
VCProgrammer wrote:
RegSetValueEx ( childkey, (LPCTSTR)name, 0, REG_DWORD, (const BYTE*) (LPCTSTR)data, data.GetLength());


You've told RegSetValueEx() to expect a DWORD value, yet what you are passing is not. Try:

char *stop;
DWORD dwValue = strtoul(data, &stop, 10);
RegSetValueEx(childkey, name, 0, REG_DWORD, (const BYTE *) &dwValue, sizeof(DWORD));


"Love people and use things, not love things and use people." - Unknown

"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch


AnswerRe: making DWORD registry enteries Pin
Hamid_RT7-Aug-08 23:24
Hamid_RT7-Aug-08 23:24 
QuestionThread Pin
shakumar_227-Aug-08 2:08
shakumar_227-Aug-08 2:08 
AnswerRe: Thread Pin
Cedric Moonen7-Aug-08 2:24
Cedric Moonen7-Aug-08 2:24 
GeneralRe: Thread Pin
shakumar_227-Aug-08 2:36
shakumar_227-Aug-08 2:36 
GeneralRe: Thread Pin
Cedric Moonen7-Aug-08 2:41
Cedric Moonen7-Aug-08 2:41 
GeneralRe: Thread Pin
shaibee7-Aug-08 5:14
shaibee7-Aug-08 5:14 
QuestionRe: Thread Pin
David Crow7-Aug-08 3:05
David Crow7-Aug-08 3:05 
QuestionMaximize button Pin
hari_honey7-Aug-08 2:01
hari_honey7-Aug-08 2:01 
AnswerRe: Maximize button Pin
Perspx7-Aug-08 2:25
Perspx7-Aug-08 2:25 
AnswerRe: Maximize button Pin
David Crow7-Aug-08 3:07
David Crow7-Aug-08 3:07 
GeneralRe: Maximize button Pin
hari_honey7-Aug-08 20:09
hari_honey7-Aug-08 20:09 
QuestionHow to get text file format information? Pin
Ahmad Zubair7-Aug-08 1:57
Ahmad Zubair7-Aug-08 1:57 
QuestionRe: How to get text file format information? Pin
David Crow7-Aug-08 3:11
David Crow7-Aug-08 3:11 
QuestionMPEG to WMV and MPEG4 conversion problem Pin
lal00127-Aug-08 1:53
lal00127-Aug-08 1:53 
Question[Message Deleted] Pin
R@jeev K R7-Aug-08 1:42
R@jeev K R7-Aug-08 1:42 
AnswerRe: Dual monitor Problem Pin
Cedric Moonen7-Aug-08 1:50
Cedric Moonen7-Aug-08 1:50 
Questionregarding [callback] attribute of MIDL that is used in RPC. Pin
Sameerkumar Namdeo7-Aug-08 1:35
Sameerkumar Namdeo7-Aug-08 1:35 

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.