in c++/cli, i announce duty an 'out' parameter?
i have duty parses twine twin strings. c# i announce this:
void parsequery(string toparse, out twine search, out twine sort)
{
...
}
and i'd this:
string searchoutput, sortoutput;
parsequery(userinput, out searchoutput, out sortoutput);
the tide digest finished c++/cli. i've tried
using system::runtime::interopservices;
...
void parsequery(string ^ toparse, [out] string^ search, [out] string^ sort)
{
...
}
but i this:
string ^ searchoutput, ^ sortoutput;
parsequery(userinput, [out] searchoutput, [out] sortoutput);
i compiler error, i this:
string ^ searchoutput, ^ sortoutput;
parsequery(userinput, searchoutput, sortoutput);
then i an blunder during runtime. should i announce function?
Comments
Post a Comment