changed:problem with c++ strings +a question about wget

Started by
21 comments, last by ranakor 19 years, 4 months ago
bump
Advertisement
My bad, you are right about tmp. Missed that piece of code somehow...

Are you sure you are opening the file? When I compiled the code I did not have the file, hence the get would fail and tmp was 0x00. This caused the rest of the problems to occur. The test line works for me with the code you supplied hence the references to the other posssible problems I thought I saw.

Chris
as i said the whole program works fine with your stream solution it just didn't work with the same code when MainIndexUrl was a string

MainIndexUrl="sometexthere";
MainIndexUrl+=FileCounter;
MainIndexUrl+="&";

this work when mainindexurl is a ostringstream but not when it's a string (& i'm wondering what's going wrong since the 2nd line works fine but i have a gut feeling that since the 3rd seems normal the 2nd may have screwed up the string for adding more on top of it) filecounter being a char[50]

This topic is closed to new replies.

Advertisement