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

C / C++ / MFC

 
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 
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 
Thanks Gary. I've made the suggested corrections and all works fine now.

token = strtok(dir_name_in, delims);

strcpy(buf, token);

while(token != NULL)
{
  if(strlen(buf) > 8)
  {
    buf[6] = '~';
    buf[7] = '1';
    buf[8] = '\0';
  }
  strcat(buf, "\\");

  strcat(dir_name_out, buf);

  token = strtok(NULL, delims);
}


By copying the token into buf and manipulating that, it doesn't effect the operation of the strtok function.

Thanks again Smile | :)


u6ik
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 "use of undefined type 'IShellFolder2'" Pin
Blue-Bird17-Nov-05 22:00
Blue-Bird17-Nov-05 22:00 
AnswerRe: use IShellFolder2 then "use of undefined type 'IShellFolder2'" 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 
AnswerRe: Is it possible to use GDI+ in VC++ 6.0 Pin
ThatsAlok17-Nov-05 22:44
ThatsAlok17-Nov-05 22:44 
QuestionCClockST Ver1.3 Pin
benny_t5117-Nov-05 21:41
benny_t5117-Nov-05 21:41 
AnswerRe: CClockST Ver1.3 Pin
toxcct17-Nov-05 23:49
toxcct17-Nov-05 23:49 
Questionhow to print a .bmp or .png file in dialog based applicatio Pin
cancerion17-Nov-05 21:20
cancerion17-Nov-05 21:20 
QuestionHow to open file in own program? Pin
uus9917-Nov-05 21:13
uus9917-Nov-05 21:13 

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.