I am new to C++... please help.
I am using Visual C++ (using MFC).
FunctionA looks like this.
FunctionA(Long* pVal)
I know I can call function A like so..
long bRet;
FunctionA(&bRet);
However if I want to pass the return value as a parameter of another function (FunctionB) call... how do I do that.
I tried
FunctionB(FunctionA())...and it is expecting a parameter. The parameter is just the output.
What is the trick?
Few additional questions:
How do I convert BSTR to std::string?
How do I convert Long to int?
I am using Visual C++ (using MFC).
FunctionA looks like this.
FunctionA(Long* pVal)
I know I can call function A like so..
long bRet;
FunctionA(&bRet);
However if I want to pass the return value as a parameter of another function (FunctionB) call... how do I do that.
I tried
FunctionB(FunctionA())...and it is expecting a parameter. The parameter is just the output.
What is the trick?
Few additional questions:
How do I convert BSTR to std::string?
How do I convert Long to int?