_Seem_ to have fixed it with: ------------------ char *s; s = (char *)strchr( szKeyName, '#' ); if ( s ) { *s = '\0'; ----------------- Will this work, am I just missing the error, or will this cause errors down the road??
Now I am getting a bunch of errors for not having windows.h. I have not yet downloaded the Platform SDK. I don't see it being worth 1.4 GB if all I want is a few include files. Will I have to DL the entire thing? On Fri, 3 Dec 2004 08:03:48 -0600, <SB> Childe Roland <[EMAIL PROTECTED]> wrote: > On Fri, 03 Dec 2004 14:29:14 +0100, tei <[EMAIL PROTECTED]> wrote: > ... > > Why not rewrite this to this?: > ... > > const char *s = strchr( szKeyName, '#' ); > > if ( s ) > > { > > *s = '\0'; > ... > > Because then it returns the error: > "error C3892: 's' : you cannot assign to a variable that is const" > > > > -- > ==================== > <SB> Childe Roland > "I will show you fear in a handful of jelly beans." > -- ==================== <SB> Childe Roland "I will show you fear in a handful of jelly beans." _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders