Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Dbase with CDaoDatabase? Pin
Jörgen Sigvardsson18-Oct-06 11:49
Jörgen Sigvardsson18-Oct-06 11:49 
QuestionRegEnumValue fn error ... help me .. Pin
Sakthiu17-Oct-06 20:04
Sakthiu17-Oct-06 20:04 
QuestionRe: RegEnumValue fn error ... help me .. Pin
prasad_som17-Oct-06 20:09
prasad_som17-Oct-06 20:09 
AnswerRe: RegEnumValue fn error ... help me .. Pin
Sakthiu17-Oct-06 20:13
Sakthiu17-Oct-06 20:13 
AnswerRe: RegEnumValue fn error ... help me .. Pin
prasad_som17-Oct-06 20:35
prasad_som17-Oct-06 20:35 
GeneralRe: RegEnumValue fn error ... help me .. Pin
Waldermort17-Oct-06 20:51
Waldermort17-Oct-06 20:51 
GeneralRe: RegEnumValue fn error ... help me .. Pin
Blake Miller18-Oct-06 9:52
Blake Miller18-Oct-06 9:52 
AnswerRe: RegEnumValue fn error ... help me .. Pin
ThatsAlok18-Oct-06 5:07
ThatsAlok18-Oct-06 5:07 
 DWORD                dwIndex=0;
         TCHAR                lpValueName[MAX_PATH]={0};
         TCHAR                lpValue[MAX_PATH]={0};
         BYTE                lpData[MAX_PATH]={0};
         long                lEnumFlag=ERROR_SUCCESS;
         MapIDToValue        mapIdToValues;

         while(lEnumFlag==ERROR_SUCCESS)
         {
             DWORD dwValueName=MAX_PATH,dwData=MAX_PATH;

             lEnumFlag=RegEnumValue(hRegKey.m_hKey,
                                      dwIndex,
                                      lpValueName,
                                      &dwValueName,
                                      NULL,
                                      NULL,
                                      lpData,
                                      &dwData);

             if(lEnumFlag==ERROR_SUCCESS)
             {
                 long lID=_ttol(lpValueName);
                 lstrcpy(lpValue,(const TCHAR*)lpData);
                 mapIdToValues.insert(MapIDToValue::value_type(lID,lpValue));
                 dwIndex++;
             }

         }


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You

QuestionLOGFONT and GetTextExtent Pin
includeh1017-Oct-06 20:04
includeh1017-Oct-06 20:04 
AnswerRe: LOGFONT and GetTextExtent Pin
Mark Salsbery18-Oct-06 6:29
Mark Salsbery18-Oct-06 6:29 
QuestionHow to access print preview Control bar Pin
georgekjolly17-Oct-06 19:23
georgekjolly17-Oct-06 19:23 
AnswerRe: How to access print preview Control bar Pin
alphaxz17-Oct-06 19:27
alphaxz17-Oct-06 19:27 
QuestionDLL Programming: a Web Browser on Dialog Box Pin
Get_Rakesh17-Oct-06 18:41
Get_Rakesh17-Oct-06 18:41 
QuestionHow to run a command and wait for its completion Pin
Abhiyantara17-Oct-06 18:36
Abhiyantara17-Oct-06 18:36 
AnswerRe: How to run a command and wait for its completion Pin
Stephen Hewitt17-Oct-06 19:06
Stephen Hewitt17-Oct-06 19:06 
GeneralRe: How to run a command and wait for its completion Pin
alphaxz17-Oct-06 19:13
alphaxz17-Oct-06 19:13 
GeneralRe: How to run a command and wait for its completion Pin
Mark Salsbery18-Oct-06 6:31
Mark Salsbery18-Oct-06 6:31 
Questionfstream + vector Pin
aldo hexosa17-Oct-06 18:35
professionalaldo hexosa17-Oct-06 18:35 
AnswerRe: fstream + vector Pin
Stephen Hewitt17-Oct-06 18:55
Stephen Hewitt17-Oct-06 18:55 
AnswerRe: fstream + vector Pin
Programm3r17-Oct-06 20:34
Programm3r17-Oct-06 20:34 
GeneralRe: fstream + vector Pin
Link200617-Oct-06 21:08
Link200617-Oct-06 21:08 
JokeRe: fstream + vector Pin
Programm3r17-Oct-06 21:12
Programm3r17-Oct-06 21:12 
GeneralRe: fstream + vector Pin
Christian Graus17-Oct-06 21:55
protectorChristian Graus17-Oct-06 21:55 
QuestionHow to create Internet shortcut link? Pin
kiranin17-Oct-06 18:04
kiranin17-Oct-06 18:04 
QuestionRe: How to create Internet shortcut link? Pin
prasad_som17-Oct-06 19:19
prasad_som17-Oct-06 19:19 

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.