Click here to Skip to main content
16,005,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Transparent Shadows Pin
Michael Dunn3-May-06 7:21
sitebuilderMichael Dunn3-May-06 7:21 
GeneralRe: Transparent Shadows Pin
jk chan3-May-06 19:54
jk chan3-May-06 19:54 
QuestionRegSetValueEx crashing with Access Violation Pin
Rajni Kant3-May-06 3:46
Rajni Kant3-May-06 3:46 
AnswerRe: RegSetValueEx crashing with Access Violation Pin
James R. Twine3-May-06 3:52
James R. Twine3-May-06 3:52 
AnswerRe: RegSetValueEx crashing with Access Violation Pin
Hamid_RT3-May-06 4:13
Hamid_RT3-May-06 4:13 
GeneralRe: RegSetValueEx crashing with Access Violation Pin
James R. Twine3-May-06 4:31
James R. Twine3-May-06 4:31 
GeneralRe: RegSetValueEx crashing with Access Violation Pin
Hamid_RT3-May-06 4:55
Hamid_RT3-May-06 4:55 
AnswerRe: RegSetValueEx crashing with Access Violation Pin
Hamid_RT3-May-06 4:53
Hamid_RT3-May-06 4:53 
Rajni Kant,

I find your answer you can use 2 string and then use your function
or like this

TCHAR data[8192];
const char * lpValueN = "name";
DWORD dwBufLen = 8192;
const char *strValue;
strValue=(const char*)LocalAlloc(LPTR,2065);
strcat((char*)strValue,"");if example is 1032
dwBufLen =lstrlen(strValue);
RegSetValueEx(phk,lpValueN,0,REG_SZ,(unsigned char *)strValue,dwBufLen);


strcat((char*)strValue,"");//here 1032
dwBufLen =lstrlen(strValue);
RegSetValueEx(phk,lpValueN,0,REG_SZ,(unsigned char *)strValue,dwBufLen);

you get your answer I test with this way and I can save my value
Questionwhats the file? Pin
9ine3-May-06 2:51
9ine3-May-06 2:51 
AnswerRe: whats the file? Pin
Maximilien3-May-06 2:53
Maximilien3-May-06 2:53 
GeneralRe: whats the file? Pin
9ine3-May-06 3:02
9ine3-May-06 3:02 
AnswerRe: whats the file? Pin
Cedric Moonen3-May-06 2:57
Cedric Moonen3-May-06 2:57 
GeneralRe: whats the file? Pin
9ine3-May-06 3:04
9ine3-May-06 3:04 
GeneralRe: whats the file? Pin
Cedric Moonen3-May-06 3:07
Cedric Moonen3-May-06 3:07 
GeneralRe: whats the file? Pin
toxcct3-May-06 3:08
toxcct3-May-06 3:08 
GeneralRe: whats the file? Pin
Cedric Moonen3-May-06 3:14
Cedric Moonen3-May-06 3:14 
GeneralRe: whats the file? Pin
toxcct3-May-06 3:16
toxcct3-May-06 3:16 
GeneralRe: whats the file? Pin
9ine3-May-06 3:36
9ine3-May-06 3:36 
AnswerRe: whats the file? Pin
kakan3-May-06 3:34
professionalkakan3-May-06 3:34 
GeneralRe: whats the file? Pin
9ine3-May-06 3:38
9ine3-May-06 3:38 
QuestionRe: whats the file? Pin
David Crow3-May-06 7:54
David Crow3-May-06 7:54 
GeneralRe: whats the file? Pin
kakan3-May-06 19:26
professionalkakan3-May-06 19:26 
GeneralRe: whats the file? Pin
9ine4-May-06 4:03
9ine4-May-06 4:03 
AnswerRe: whats the file? Pin
Eytukan3-May-06 4:38
Eytukan3-May-06 4:38 
AnswerRe: whats the file? Pin
normanS3-May-06 20:00
normanS3-May-06 20:00 

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.