Click here to Skip to main content
15,916,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioninsert values from access database to the microsoft chart in MFC Pin
Febin Elizabeth28-Mar-09 0:26
Febin Elizabeth28-Mar-09 0:26 
Questioninsertion of time information to the access database Pin
Febin Elizabeth27-Mar-09 23:58
Febin Elizabeth27-Mar-09 23:58 
AnswerRe: insertion of time information to the access database Pin
Stuart Dootson28-Mar-09 0:40
professionalStuart Dootson28-Mar-09 0:40 
QuestionTransparent dialog problem Pin
xinyue54327-Mar-09 23:11
xinyue54327-Mar-09 23:11 
AnswerRe: Transparent dialog problem Pin
Code-o-mat27-Mar-09 23:55
Code-o-mat27-Mar-09 23:55 
AnswerRe: Transparent dialog problem Pin
Stuart Dootson27-Mar-09 23:55
professionalStuart Dootson27-Mar-09 23:55 
AnswerRe: Transparent dialog problem Pin
ganesh.dp28-Mar-09 2:03
ganesh.dp28-Mar-09 2:03 
QuestionHow to transform 2D image to 3D image? Pin
polomsd27-Mar-09 22:29
polomsd27-Mar-09 22:29 
AnswerRe: How to transform 2D image to 3D image? Pin
Stuart Dootson27-Mar-09 23:48
professionalStuart Dootson27-Mar-09 23:48 
GeneralRe: How to transform 2D image to 3D image? Pin
polomsd28-Mar-09 2:48
polomsd28-Mar-09 2:48 
QuestionGetting Tray Icon Details Pin
ganesh.dp27-Mar-09 21:07
ganesh.dp27-Mar-09 21:07 
AnswerRe: Getting Tray Icon Details Pin
Stuart Dootson27-Mar-09 23:05
professionalStuart Dootson27-Mar-09 23:05 
AnswerRe: Getting Tray Icon Details Pin
Rajesh R Subramanian28-Mar-09 1:50
professionalRajesh R Subramanian28-Mar-09 1:50 
QuestionHandling KeyDown even on Dialog. Pin
grassrootkit27-Mar-09 18:49
grassrootkit27-Mar-09 18:49 
AnswerRe: Handling KeyDown even on Dialog. Pin
Stuart Dootson27-Mar-09 23:41
professionalStuart Dootson27-Mar-09 23:41 
GeneralRe: Handling KeyDown even on Dialog. Pin
grassrootkit28-Mar-09 4:46
grassrootkit28-Mar-09 4:46 
GeneralRe: Handling KeyDown even on Dialog. Pin
Stuart Dootson28-Mar-09 4:59
professionalStuart Dootson28-Mar-09 4:59 
GeneralRe: Handling KeyDown even on Dialog. Pin
grassrootkit28-Mar-09 5:39
grassrootkit28-Mar-09 5:39 
Questionvs2008proeditiongodaytrialedition Pin
samuellhu27-Mar-09 17:09
samuellhu27-Mar-09 17:09 
AnswerRe: vs2008proeditiongodaytrialedition Pin
grassrootkit27-Mar-09 18:50
grassrootkit27-Mar-09 18:50 
QuestionAnnoying RegEnumKeyEx Problem Pin
Baltoro27-Mar-09 6:49
Baltoro27-Mar-09 6:49 
I am writing an application that enumerates all the subkeys in HKEY_CLASSES_ROOT\CLSID, and then writes all the names of subkeys to an XML file for reference.
It's pretty simple stuff, really. This registry location stores configuration information for all the registered COM classes on my machine, and there are about 4.000 subkeys.
Each subkeys Name is the hexadecimal string representation of a 128-bit number known as a Globally Unique Identifier (GUID). When represented textually, GUIDs are always displayed in the following canonical form:

BDA4A270-A1B1-11D0-8C2C-0080C73925BA

The HKEY_CLASSES_ROOT\CLSID subkeys are named exactly like this, except that they begin and end with curly braces.
I enumerate the subkeys with a simple for loop, saving the GUID to a TCHAR buffer (size, 128 bytes) and everyting works OK, until I hit a subkey about a third of the way down that is a GUID with one of the integers missing. Then the RegEnumKeyEx function stops writing the GUIDs to the TCHAR buffer, but continues on without generating an error code.
The program code then writes the GUID text strings to my XML file (this part works great).
I had to write another function that uses RegEnumKeyEx in a for loop again, but indexes the enumeration to begin at the subkey immediately after the truncated GUID that caused the problem initially, and runs to the final key (total subkey count obtained with RegQueryInfoKey). This works successfully. but the entire process of the determining the source of the error, and writing a seperate enumeration function was quite time consuming (I initially thought it was insufficient memory.).
I'm wondering if anyone knows why RegEnumKeyEx behaves like this. Surely, it doesn't check the text GUID values for validity. I used Registry Editor to search for other keys and associated values for that one malformed GUID, and found about a dozen entries, all with the same exact truncated format (weirdly enough, it's a Visual Studio component!).
Any useful comments are appreciated,...thanks.
QuestionRe: Annoying RegEnumKeyEx Problem Pin
David Crow27-Mar-09 8:10
David Crow27-Mar-09 8:10 
AnswerRe: Annoying RegEnumKeyEx Problem Pin
Baltoro27-Mar-09 11:37
Baltoro27-Mar-09 11:37 
GeneralRe: Annoying RegEnumKeyEx Problem Pin
Baltoro27-Mar-09 12:02
Baltoro27-Mar-09 12:02 
GeneralSorry, all the text is running off the page display. Pin
Baltoro27-Mar-09 12:37
Baltoro27-Mar-09 12:37 

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.