User Profile

Collapse

Profile Sidebar

Collapse
mpage
mpage
Last Activity: Nov 2 '07, 01:38 PM
Joined: Nov 2 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • You could try somthing like this ....

    As per the Posting Guidelines, please don't spoonfeed answers.
    See more | Go to post

    Leave a comment:


  • mpage
    replied to How to insert a string in side other string
    in C
    and when i want to create the new file name i do this



    Code:
           int largoNom = strlen(finddata.name);
           largoNom += 5;
           char *unique = new char[largoNom];
           largoNom -= 9;
           strncpy(unique,finddata.name,largoNom);
           strcat(unique,"_res");
           strcat(unique,".bmp");
           FunFI::GenericWriter(dib, unique, PNG_DEFAULT);
    ...
    See more | Go to post

    Leave a comment:


  • mpage
    started a topic How to insert a string in side other string
    in C

    How to insert a string in side other string

    Hi, this is my first post and i dont have a very good english so I'll try to do my best....

    I'm working with image processing in C++, for that I read the file name from console , I open the file I work with it and then I want to create a file with the same name of the image with a "_res" added....

    so for example if the image name is "image1.bmp " what i want to save is "image1_res.bmp ".......
    See more | Go to post
No activity results to display
Show More
Working...