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

C / C++ / MFC

 
QuestionC99 with VC6 Pin
hssaroch18-Nov-05 2:14
hssaroch18-Nov-05 2:14 
AnswerRe: C99 with VC6 Pin
toxcct18-Nov-05 3:26
toxcct18-Nov-05 3:26 
GeneralRe: C99 with VC6 Pin
Cedric Moonen18-Nov-05 3:46
Cedric Moonen18-Nov-05 3:46 
GeneralRe: C99 with VC6 Pin
toxcct18-Nov-05 3:58
toxcct18-Nov-05 3:58 
GeneralRe: C99 with VC6 Pin
Sheng Jiang 蒋晟18-Nov-05 11:04
Sheng Jiang 蒋晟18-Nov-05 11:04 
GeneralRe: C99 with VC6 Pin
toxcct18-Nov-05 23:17
toxcct18-Nov-05 23:17 
AnswerRe: C99 with VC6 Pin
Gary R. Wheeler19-Nov-05 6:11
Gary R. Wheeler19-Nov-05 6:11 
Questionstrtok problem... Pin
u6ik18-Nov-05 2:08
u6ik18-Nov-05 2:08 
Can anyone see a problem with this code? It keeps resetting the original string line so it jumps out of the loop after the first token. What it should do is parse the whole line...

For some reason it doesn't seem to like the "\\" delimiter, if I use " " is works fine - but " " is not the delimiter I need.

Thanks for any help in advance Wink | ;)

<br />
char * token;<br />
char dir_name_out[256];<br />
<br />
char *delims = "\\";<br />
<br />
strcpy(dir_name_out, ""); // Clear output<br />
<br />
token = strtok(dir_name_in, delims);<br />
<br />
while(token != NULL)<br />
{<br />
	if(strlen(token) > 8)<br />
	{<br />
		token[6] = '~';<br />
		token[7] = '1';<br />
		token[8] = '\0';<br />
	}<br />
<br />
	strcat(token, "\\");<br />
<br />
	strcat(dir_name_out, token);<br />
		<br />
	//strcpy(token, strtok(NULL, "\\\n\0"));<br />
	token = strtok(NULL, delims);<br />
}<br />


u6ik
AnswerRe: strtok problem... Pin
David Crow18-Nov-05 3:22
David Crow18-Nov-05 3:22 
GeneralRe: strtok problem... Pin
u6ik18-Nov-05 4:07
u6ik18-Nov-05 4:07 
QuestionRe: strtok problem... Pin
David Crow18-Nov-05 4:45
David Crow18-Nov-05 4:45 
AnswerRe: strtok problem... Pin
Gary R. Wheeler19-Nov-05 6:43
Gary R. Wheeler19-Nov-05 6:43 
GeneralRe: strtok problem... Pin
u6ik20-Nov-05 23:34
u6ik20-Nov-05 23:34 
QuestionPrinter driver installation debugging Pin
loneadam200018-Nov-05 1:59
loneadam200018-Nov-05 1:59 
AnswerRe: Printer driver installation debugging Pin
Axter18-Nov-05 19:06
professionalAxter18-Nov-05 19:06 
AnswerRe: Printer driver installation debugging Pin
loneadam200020-Nov-05 20:05
loneadam200020-Nov-05 20:05 
QuestionHow to get the style from another class?? Pin
zxc8917-Nov-05 23:15
zxc8917-Nov-05 23:15 
AnswerRe: How to get the style from another class?? Pin
Cedric Moonen18-Nov-05 1:05
Cedric Moonen18-Nov-05 1:05 
QuestionFlickering... Pin
Raza568017-Nov-05 22:09
Raza568017-Nov-05 22:09 
AnswerRe: Flickering... Pin
kakan17-Nov-05 22:45
professionalkakan17-Nov-05 22:45 
AnswerRe: Flickering... Pin
Owner drawn17-Nov-05 22:47
Owner drawn17-Nov-05 22:47 
Questionuse IShellFolder2 then &quot;use of undefined type 'IShellFolder2'&quot; Pin
Blue-Bird17-Nov-05 22:00
Blue-Bird17-Nov-05 22:00 
AnswerRe: use IShellFolder2 then &amp;quot;use of undefined type 'IShellFolder2'&amp;quot; Pin
Sheng Jiang 蒋晟18-Nov-05 11:07
Sheng Jiang 蒋晟18-Nov-05 11:07 
QuestionIs it possible to use GDI+ in VC++ 6.0 Pin
maharaja pandian17-Nov-05 21:44
maharaja pandian17-Nov-05 21:44 
AnswerRe: Is it possible to use GDI+ in VC++ 6.0 Pin
kakan17-Nov-05 22:37
professionalkakan17-Nov-05 22: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.