You could try somthing like this ....
As per the Posting Guidelines, please don't spoonfeed answers.
User Profile
Collapse
-
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);Leave a comment:
-
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 ".......
No activity results to display
Show More
Leave a comment: