B
blackstreetcat
I'm trying to send a stringstream to a function in a dll like so:
in Dll:
class A
{int i;
f(istream& in)
{
in>>i;
}
};
in the exe:
A a;
stringstream s<<1;
a.f(s);
the code dosent work access violation;
using standard std::cin works fine;
what is the problem with sringstream and how can \i fix it?
thanks.
Kat.
in Dll:
class A
{int i;
f(istream& in)
{
in>>i;
}
};
in the exe:
A a;
stringstream s<<1;
a.f(s);
the code dosent work access violation;
using standard std::cin works fine;
what is the problem with sringstream and how can \i fix it?
thanks.
Kat.