
Originally Posted by
prajna123
In the above code I have declared
names << "c:/Data/Images/Pictures/bg13.png" << "c:/Data/Images/Pictures/butterfly.png" << "c:/Data/Images/Pictures/collidingmice.png"<< "c:/Data/Images/Pictures/dragdroprobot-example.png" << "c:/Data/Images/Pictures/glmda.png";
the thing is "istr" contains "c:\Data\Images\Pictures\selectedpic.png" and "names" contains "c:/Data/Images/Pictures/bg13.png"
so in the above code, during compare, slashes differ.(one is forward and one is back slash)
But, Whn I try gving other slash for "names" it won't take.
...
Who/what won't take it? Use:
Code:
names << "c:\\Data\\Images\\Pictures\\bg13.png"