R
RLF
Am upgrading a C++ console app to add a DotNet Front End. Have run into a
couple of issues.
The first one is basically a c++ question. I have a class which maintains a
reference to an istringstream that is passed to it in the constructor.
Since I won't have an istream to give it from the front end, I'd like to add
another ctor that accepts a string and generates the istringstream for me so
that the reference initializer is satisfied.
Haven't found an acceptible way to do that. Could use some help.
The second question involves the string itself. I presume the ctor will most
likely need to deal with a System::String coming from the front end. I am
not familiar with the conversions available to turn that into an acceptable
type that can be handled by the istringstream constructor.
Any advice would be appreciated.
couple of issues.
The first one is basically a c++ question. I have a class which maintains a
reference to an istringstream that is passed to it in the constructor.
Since I won't have an istream to give it from the front end, I'd like to add
another ctor that accepts a string and generates the istringstream for me so
that the reference initializer is satisfied.
Haven't found an acceptible way to do that. Could use some help.
The second question involves the string itself. I presume the ctor will most
likely need to deal with a System::String coming from the front end. I am
not familiar with the conversions available to turn that into an acceptable
type that can be handled by the istringstream constructor.
Any advice would be appreciated.