Click here to Skip to main content
15,921,210 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: My VC++ Dosnt Have Certain Header Files??? Pin
Blake V. Miller5-Oct-05 10:47
Blake V. Miller5-Oct-05 10:47 
QuestionDifference between free(*str) and free(str) Pin
KellyR4-Oct-05 10:40
KellyR4-Oct-05 10:40 
AnswerRe: Difference between free(*str) and free(str) Pin
Axter4-Oct-05 11:13
professionalAxter4-Oct-05 11:13 
QuestionAPI's for retreiving url's Pin
Jim Crafton4-Oct-05 10:08
Jim Crafton4-Oct-05 10:08 
AnswerRe: API's for retreiving url's Pin
Jim Crafton4-Oct-05 10:17
Jim Crafton4-Oct-05 10:17 
AnswerRe: API's for retreiving url's Pin
Bartosz Bien4-Oct-05 10:18
Bartosz Bien4-Oct-05 10:18 
GeneralRe: API's for retreiving url's Pin
Jim Crafton4-Oct-05 10:30
Jim Crafton4-Oct-05 10:30 
QuestionRegistry case sensitivity - useless to check? Pin
dandy724-Oct-05 9:31
dandy724-Oct-05 9:31 
Hi all,

There's some code I "inherited" a few years ago and never really had much of an opportunity to clean it up in a significant fashion until now. I've always left all the little nagging things in there because of time constraints.

One thing that's been bugging me for a long time is that for every registry I/O operation occuring in this code (hundreds, some in loops), the original developer first verified the OS the program was running on. If it's Win9x, the string built to open a registry key is formatted to start with HKLM\SOFTWARE. If it's something from the NT line, then the string is HKLM\Software.

Is this absolutely, positively pointless? Are there any circumstances under which, if I settle on one case (without doing the check) the registry I/O call will fail? I've NEVER come across anything that would indicate this could happen, but at the same time I've never come across anything that guaranteed it would always work either regardless of case. My own tests on everything from the original Windows 95 all the way to Vista 5219 show that this check is utterly useless, and I could skip it entirely.

I'm very tempted to do so (and thus get rid of hundreds of these calls, and streamline all the registry string building code in the program), but not before I can find some (Microsoft?) documentation reassuring me that case sensitivity in registry key names is irrelevant.

Anyone can give me a convincing argument to leave this seemingly useless code in there? I mean, surely this check was added in the first place for a reason...?

AnswerRe: Registry case sensitivity - useless to check? Pin
Bartosz Bien4-Oct-05 10:09
Bartosz Bien4-Oct-05 10:09 
QuestionTaskbar broadcast messages? Pin
Nautilus Master4-Oct-05 8:58
Nautilus Master4-Oct-05 8:58 
QuestionVS.Net Dialog Editor broken Pin
Jim A. Johnson4-Oct-05 8:16
Jim A. Johnson4-Oct-05 8:16 
AnswerRe: VS.Net Dialog Editor broken Pin
Jim A. Johnson4-Oct-05 10:26
Jim A. Johnson4-Oct-05 10:26 
Questionlooking for C++ code Pin
repati4-Oct-05 7:45
repati4-Oct-05 7:45 
AnswerRe: looking for C++ code Pin
Jim A. Johnson4-Oct-05 8:19
Jim A. Johnson4-Oct-05 8:19 
AnswerRe: looking for C++ code Pin
PJ Arends4-Oct-05 9:39
professionalPJ Arends4-Oct-05 9:39 
GeneralRe: looking for C++ code Pin
Wes Aday4-Oct-05 12:54
professionalWes Aday4-Oct-05 12:54 
QuestionReading all lines Pin
Alex Cutovoi4-Oct-05 7:36
Alex Cutovoi4-Oct-05 7:36 
AnswerRe: Reading all lines Pin
Chris Losinger4-Oct-05 8:27
professionalChris Losinger4-Oct-05 8:27 
AnswerRe: Reading all lines Pin
David Crow4-Oct-05 8:27
David Crow4-Oct-05 8:27 
GeneralRe: Reading all lines Pin
Alex Cutovoi4-Oct-05 8:39
Alex Cutovoi4-Oct-05 8:39 
GeneralRe: Reading all lines Pin
David Crow4-Oct-05 8:49
David Crow4-Oct-05 8:49 
GeneralRe: Reading all lines Pin
Alex Cutovoi4-Oct-05 9:02
Alex Cutovoi4-Oct-05 9:02 
GeneralRe: Reading all lines Pin
David Crow4-Oct-05 9:10
David Crow4-Oct-05 9:10 
GeneralRe: Reading all lines Pin
Alex Cutovoi4-Oct-05 9:32
Alex Cutovoi4-Oct-05 9:32 
GeneralRe: Reading all lines Pin
David Crow4-Oct-05 9:58
David Crow4-Oct-05 9:58 

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.