Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMFC42UD.lib Pin
super17-Feb-06 13:56
professionalsuper17-Feb-06 13:56 
AnswerRe: MFC42UD.lib Pin
super17-Feb-06 14:04
professionalsuper17-Feb-06 14:04 
QuestionReading file with X/Y axes? Pin
Lord Kixdemp17-Feb-06 13:20
Lord Kixdemp17-Feb-06 13:20 
AnswerRe: Reading file with X/Y axes? Pin
Lord Kixdemp17-Feb-06 15:40
Lord Kixdemp17-Feb-06 15:40 
Question[registry] get all values in a key Pin
Sam 200617-Feb-06 12:42
Sam 200617-Feb-06 12:42 
AnswerRe: [registry] get all values in a key Pin
Michael Dunn17-Feb-06 15:54
sitebuilderMichael Dunn17-Feb-06 15:54 
GeneralRe: [registry] get all values in a key Pin
Sam 200618-Feb-06 4:55
Sam 200618-Feb-06 4:55 
AnswerRe: [registry] get all values in a key Pin
Ganesh_T18-Feb-06 1:40
Ganesh_T18-Feb-06 1:40 
You can use this function:
Here you have to pass the valueName to access it's value.
Specify the Root key where your subkey is located

CString YourClassName::GetValueFromRegistry(CString regValuName)
{
char lszValue[255];
CString str ;
HKEY hKey;
LONG returnStatus;
DWORD dwType=REG_SZ;
DWORD dwSize=255;
returnStatus = RegOpenKeyEx(HKEY_CURRENT_USER, "currentuser\\software\\name\\program", 0L, KEY_ALL_ACCESS, &hKey);
if (returnStatus == ERROR_SUCCESS)
{
returnStatus = RegQueryValueEx(hKey,regValuName, NULL, &dwType,(LPBYTE)&lszValue, &dwSize);
if(returnStatus == ERROR_SUCCESS)
{
str = (LPCTSTR)lszValue;
}
else
{
str="";
}
}
else
{
str="";
}
RegCloseKey(hKey);

return str;
}

Cheers
"Peace of mind through Technology"
GeneralRe: [registry] get all values in a key Pin
Sam 200618-Feb-06 5:26
Sam 200618-Feb-06 5:26 
QuestionHow include extern DLL's as static Library into project? Pin
@LX17-Feb-06 12:42
@LX17-Feb-06 12:42 
AnswerRe: How include extern DLL's as static Library into project? Pin
John M. Drescher17-Feb-06 13:29
John M. Drescher17-Feb-06 13:29 
AnswerRe: How include extern DLL's as static Library into project? Pin
Michael Dunn17-Feb-06 15:55
sitebuilderMichael Dunn17-Feb-06 15:55 
AnswerRe: How include extern DLL's as static Library into project? Pin
Koushik Biswas18-Feb-06 14:38
Koushik Biswas18-Feb-06 14:38 
QuestionWindow Handle,Class, FindWindow API Pin
john john mackey17-Feb-06 11:31
john john mackey17-Feb-06 11:31 
QuestionRe: Window Handle,Class, FindWindow API Pin
David Crow17-Feb-06 11:58
David Crow17-Feb-06 11:58 
AnswerRe: Window Handle,Class, FindWindow API Pin
john john mackey17-Feb-06 13:07
john john mackey17-Feb-06 13:07 
GeneralRe: Window Handle,Class, FindWindow API Pin
David Crow18-Feb-06 7:27
David Crow18-Feb-06 7:27 
GeneralRe: Window Handle,Class, FindWindow API Pin
john john mackey21-Feb-06 6:22
john john mackey21-Feb-06 6:22 
AnswerRe: Window Handle,Class, FindWindow API Pin
Johannes de Rek18-Feb-06 0:01
Johannes de Rek18-Feb-06 0:01 
QuestionHow to convert numeric to words. Pin
dannysoo202017-Feb-06 9:49
dannysoo202017-Feb-06 9:49 
AnswerRe: How to convert numeric to words. Pin
David Crow17-Feb-06 9:54
David Crow17-Feb-06 9:54 
GeneralRe: How to convert numeric to words.(this is the Example) ANY else? Pin
dannysoo202017-Feb-06 10:13
dannysoo202017-Feb-06 10:13 
GeneralThis is the Example, ANY else cause this one long? Pin
dannysoo202017-Feb-06 10:16
dannysoo202017-Feb-06 10:16 
QuestionRe: This is the Example, ANY else cause this one long? Pin
David Crow17-Feb-06 10:27
David Crow17-Feb-06 10:27 
AnswerRe:ANY else cause this one long? Pin
dannysoo202017-Feb-06 10:53
dannysoo202017-Feb-06 10:53 

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.