Hi,
How can we make a proc in MASM that will return an output into one of its parameters? Something like an "out" or "ref" keyword of C++?
BOOL MyProc
( int InputParam, ref int RefParam, out int OutParam )
{
OutParam = 1001;
RefParam = 2002;
return TRUE;
}
How can we make something like the above C++ code in MASM? A procedure that will return either TRUE or FALSE to indicate success or failure, but the actual output is placed on to the parameters? and it has the ability to modify parameters.
Thanks in advance,
-chris
You need to pass an address/pointer rather than a value. I believe 'REF' and 'OUT' are ways of doing this transparently.
Thanks zooba :)
-chris