Wow.... Didn't have my header included that define the function prototype.
OK, so this leaves another question. How did the compiler comile without
understanding the function (does it just assume? ) and if it does, what does
it assume? btw, I am using CW.
TIA
Ralph Krausse
-----Original Message-----
From: Ralph Krausse [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 30, 1999 10:57 AM
To: '[EMAIL PROTECTED]'
Subject: Passing Parameters..... please help...
Hello all....
Just starting out on PP development and already discouraged. I wrote
a small function MsgBox that basically is an Alert ( which is analogous to a
MessageBox in windows if I am not wrong). So, here is my code:
...
MsgBox("MsgBox Title","true = [%d] false = [%d]",true,false);
foobar(true);
foobar(false);
...
void foobar(Boolean bFlag)
{
if(bFlag== true)
MsgBox("MsgBox Title","Boolean bFlag= [true]");
else if(bFlag== false)
MsgBox("MsgBox Title","Boolean bFlag= [false]");
else
MsgBox("MsgBox Title","Boolean bFlag= [unknown]");
}
Anyhow, I have a function call foobar which take a bool. When this code
executes, the first MsgBox produces the text:
true = [1] false = [0]
this is expected behaviror....
then the first foobar function produces
Boolean bFlag= [false] <<<<<< this is wrong btw
then the next foobar function produces the same.
Boolean bFlag= [false]
... Now what am I missing? Does this damn unit not pass parameters correctly
or as a newbie, am I doing something wrong?
Please help before I test the PSI of this unit!
tia
Ralph Krausse